OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
156f525
)
testsuite: use KERNEL_HEADERS
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 23 Jul 2009 11:26:08 +0000
(13:26 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 23 Jul 2009 11:26:08 +0000
(13:26 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
test/Rules.mak
patch
|
blob
|
history
diff --git
a/test/Rules.mak
b/test/Rules.mak
index
92554c1
..
8e154c5
100644
(file)
--- a/
test/Rules.mak
+++ b/
test/Rules.mak
@@
-86,6
+86,16
@@
CC_IPREFIX := $(shell $(CC) --print-file-name=include)
CC_INC := -I$(dir $(CC_IPREFIX))include-fixed -I$(CC_IPREFIX)
CFLAGS += $(CC_INC)
+ifneq ($(KERNEL_HEADERS),)
+ifeq ($(patsubst /%,/,$(KERNEL_HEADERS)),/)
+# Absolute path in KERNEL_HEADERS
+CFLAGS += -I$(KERNEL_HEADERS)
+else
+# Relative path in KERNEL_HEADERS
+CFLAGS += -I$(top_builddir)$(KERNEL_HEADERS)
+endif
+endif
+
# Can't add $(OPTIMIZATION) here, it may be target-specific.
# Just adding -Os for now.
HOST_CFLAGS += $(XWARNINGS) -Os $(XCOMMON_CFLAGS)