Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC - Software
Commits
10d3cd7b
Commit
10d3cd7b
authored
Jan 11, 2017
by
Pat Riehecky
Committed by
Alessandro Rubini
Jun 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'make install' for firmware and tools
parent
f569932b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
2 deletions
+44
-2
Makefile
Makefile
+1
-1
Makefile
binaries/Makefile
+28
-0
Makefile
tools/Makefile
+15
-1
No files found.
Makefile
View file @
10d3cd7b
...
@@ -13,7 +13,7 @@ FMC_BUS ?= fmc-bus
...
@@ -13,7 +13,7 @@ FMC_BUS ?= fmc-bus
FMC_BUS_ABS
?=
$
(
abspath
$(FMC_BUS)
)
FMC_BUS_ABS
?=
$
(
abspath
$(FMC_BUS)
)
export
FMC_BUS_ABS
export
FMC_BUS_ABS
DIRS
=
$(FMC_BUS_ABS)
kernel tools
DIRS
=
$(FMC_BUS_ABS)
binaries
kernel tools
.PHONY
:
all clean modules install modules_install $(DIRS)
.PHONY
:
all clean modules install modules_install $(DIRS)
...
...
binaries/Makefile
0 → 100644
View file @
10d3cd7b
# If it exists includes Makefile.specific. In this Makefile, you should put
# specific Makefile code that you want to run before this. For example,
# build a particular environment.
-include
Makefile.specific
# include parent_common.mk for buildsystem's defines
REPO_PARENT
=
../..
-include
$(REPO_PARENT)/parent_common.mk
INSTALL
=
install
DESTDIR
=
PREFIX
=
/lib/
FIRMDIR
=
$(PREFIX)
/firmware/spec-sw
FIRMWARE
=
fmc-dio-eeprom.bin
all
:
$(FIRMWARE)
$(FIRMWARE)
:
ls
install
:
$(INSTALL)
-d
$(DESTDIR)$(FIRMDIR)
$(INSTALL)
-m
0644
-t
$(DESTDIR)$(FIRMDIR)
$(FIRMWARE)
# add the other unused targets, so the rule in ../Makefile works
modules modules_install clean
:
tools/Makefile
View file @
10d3cd7b
...
@@ -11,6 +11,13 @@ GIT_VERSION ?= $(shell git describe --dirty --long --tags)
...
@@ -11,6 +11,13 @@ GIT_VERSION ?= $(shell git describe --dirty --long --tags)
CFLAGS
+=
-ggdb
-Wall
-fPIC
-I
../kernel
$(EXTRACFLAGS)
CFLAGS
+=
-ggdb
-Wall
-fPIC
-I
../kernel
$(EXTRACFLAGS)
CFLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
CFLAGS
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
INSTALL
=
install
DESTDIR
=
PREFIX
=
/usr/local
BINDIR
=
$(PREFIX)
/sbin
LIBDIR
=
$(PREFIX)
/lib
LIB
=
libspec.a
LIB
=
libspec.a
LIBOBJ
=
speclib.o loader-ll.o
LIBOBJ
=
speclib.o loader-ll.o
...
@@ -33,9 +40,16 @@ loader-ll.o: ../kernel/loader-ll.c
...
@@ -33,9 +40,16 @@ loader-ll.o: ../kernel/loader-ll.c
$(LIBSHARED)
:
$(LIB)
$(LIBSHARED)
:
$(LIB)
$(CC)
-shared
-o
$@
-Wl
,--whole-archive
$^
-Wl
,--no-whole-archive
$(CC)
-shared
-o
$@
-Wl
,--whole-archive
$^
-Wl
,--no-whole-archive
install
:
$(INSTALL)
-d
$(DESTDIR)$(BINDIR)
$(INSTALL)
-m
0755
-t
$(DESTDIR)$(BINDIR)
$(PROGS)
$(INSTALL)
-d
$(DESTDIR)$(LIBDIR)
$(INSTALL)
-m
0755
-t
$(DESTDIR)$(LIBDIR)
$(LIB)
$(INSTALL)
-m
0755
-t
$(DESTDIR)$(LIBDIR)
$(LIBOBJ)
$(INSTALL)
-m
0755
-t
$(DESTDIR)$(LIBDIR)
$(LIBSHARED)
clean
:
clean
:
rm
-f
*
.o
$(LIB)
$(PROGS)
$(LIBSHARED)
*
~
rm
-f
*
.o
$(LIB)
$(PROGS)
$(LIBSHARED)
*
~
# add the other unused targets, so the rule in ../Makefile works
# add the other unused targets, so the rule in ../Makefile works
modules
install
modules_install
:
modules modules_install
:
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