summaryrefslogtreecommitdiff
path: root/cleopatre/busybox-1.11.1-spc300/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/busybox-1.11.1-spc300/Makefile')
-rw-r--r--cleopatre/busybox-1.11.1-spc300/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/cleopatre/busybox-1.11.1-spc300/Makefile b/cleopatre/busybox-1.11.1-spc300/Makefile
index 6d0cc3898d..92f770c860 100644
--- a/cleopatre/busybox-1.11.1-spc300/Makefile
+++ b/cleopatre/busybox-1.11.1-spc300/Makefile
@@ -303,12 +303,18 @@ KALLSYMS = scripts/kallsyms
PERL = perl
CHECK = sparse
+LIBSPID = $(srctree)/../application/libspid
+LIBS_FLAGS = $(shell $(LIBSPID)/libspid-config --libs) $(shell $(LIBSPID)/libspid-config --L_opts)
+LIBS_INC = $(shell $(LIBSPID)/libspid-config --I_opts)
+LIBS_LDFLAGS = $(shell $(LIBSPID)/libspid-config --ldopts)
+
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF)
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
AFLAGS_MODULE = $(MODFLAGS)
LDFLAGS_MODULE = -r
-CFLAGS_KERNEL =
+CFLAGS_KERNEL = $(LIBS_INC) -I$(srctree)/../include -I$(srctree)/../linux-2.6.25.10-spc300/include/asm-arm/arch-spc300
+
AFLAGS_KERNEL =
@@ -316,10 +322,10 @@ AFLAGS_KERNEL =
# Needed to be compatible with the O= option
CFLAGS := $(CFLAGS)
# Added only to final link stage of busybox binary
-CFLAGS_busybox := $(CFLAGS_busybox)
+CFLAGS_busybox := $(CFLAGS_busybox) $(LIBS_FLAGS)
CPPFLAGS := $(CPPFLAGS)
AFLAGS := $(AFLAGS)
-LDFLAGS := $(LDFLAGS)
+LDFLAGS := $(LDFLAGS) $(LIBS_LDFLAGS)
LDLIBS :=
# Read KERNELRELEASE from .kernelrelease (if it exists)