Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
b74ebbfe
Commit
b74ebbfe
authored
Oct 17, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: fetch submodules if needed at build time
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
27413100
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
Makefile
Makefile
+12
-3
No files found.
Makefile
View file @
b74ebbfe
...
...
@@ -80,12 +80,12 @@ OUTPUT = wrc
REVISION
=
$(
shell
git describe
--dirty
--always
)
all
:
tools $(OUTPUT).ram $(OUTPUT).vhd
$(OUTPUT).elf
all
:
tools $(OUTPUT).ram $(OUTPUT).vhd
.PRECIOUS
:
%.elf %.bin
.PHONY
:
all tools clean
.PHONY
:
all tools clean
gitmodules
$(OUTPUT).elf
:
silentoldconfig $(OBJS)
$(OUTPUT).elf
:
silentoldconfig
gitmodules
$(OBJS)
$(CC)
$(CFLAGS)
-DGIT_REVISION
=
\"
$(REVISION)
\"
-c
revision.c
${
CC
}
-o
$@
revision.o
$(OBJS)
$(LDFLAGS)
${
OBJDUMP
}
-d
$(OUTPUT)
.elf
>
$(OUTPUT)
_disasm.S
...
...
@@ -115,6 +115,15 @@ clean:
tools
:
$(MAKE)
-C
tools
# if needed, check out the submodules (first time only), so users
# who didn't read carefully the manual won't get confused
gitmodules
:
@
test
-d
ptp-noposix/libposix
||
echo
"Checking out submodules"
@
test
-d
ptp-noposix/libposix
||
\
git submodule init
&&
git submodule update
# following targets from Makefile.kconfig
silentoldconfig
:
@
mkdir
-p
include/config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment