Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
af2cf2e3
Commit
af2cf2e3
authored
13 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
userspace/Makefile: use SUBDIRS in loops
parent
b4116018
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/Makefile
+7
-19
7 additions, 19 deletions
userspace/Makefile
with
7 additions
and
19 deletions
userspace/Makefile
+
7
−
19
View file @
af2cf2e3
...
...
@@ -12,31 +12,19 @@ CROSS_COMPILE_ARM ?= $(CROSS_COMPILE)
WR_INSTALL_ROOT
?=
$(
WRS_OUTPUT_DIR
)
/images/wr
WRDEV_DIR
?=
$(
WRS_BASE_DIR
)
/..
# subdirectories we want to compile
SUBDIRS
=
libswitchhw wrsw_hal wrsw_rtud
# SUBDIRS += spll_dbg_proxy wrsw_rtud wr_mon rtu_stat
# all variables are exported
export
# All targets must install as well, as later builds use headers/libs
all
:
$(
MAKE
)
-C
libswitchhw all
install
$(
MAKE
)
-C
wrsw_hal all
install
$(
MAKE
)
-C
wrsw_rtud all
# $(MAKE) -C tests/rtu_stat TARGET=ARM all
for
d
in
$(
SUBDIRS
);
do
$(
MAKE
)
-C
$$
d
$@
||
exit
1
;
done
clean
:
$(
MAKE
)
-C
libswitchhw clean
$(
MAKE
)
-C
wrsw_hal clean
$(
MAKE
)
-C
wrsw_rtud clean
# $(MAKE) -C tests/wr_mon clean
# $(MAKE) -C tests/rtu_stat clean
for
d
in
$(
SUBDIRS
);
do
$(
MAKE
)
-C
$$
d
$@
||
exit
1
;
done
install
:
all
$(
MAKE
)
-C
libswitchhw
install
$(
MAKE
)
-C
wrsw_hal
install
$(
MAKE
)
-C
wrsw_rtud
install
# $(MAKE) -C tests/rtu_stat TARGET=ARM deploy
# ./rubi-repos/deploy.sh $(WR_INSTALL_ROOT)
#rootfs: install
# mkdir -p $(WR_INSTALL_ROOT)/firmware
# cp $(WRDEV_DIR)/hdl/bin/*.bin $(WR_INSTALL_ROOT)/firmware
# ../scripts/build_rootfs.sh
for
d
in
$(
SUBDIRS
);
do
$(
MAKE
)
-C
$$
d
$@
||
exit
1
;
done
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment