summaryrefslogtreecommitdiff
path: root/kexec_test
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-02-21 17:09:02 +0900
committerSimon Horman <horms@verge.net.au>2008-02-21 17:09:02 +0900
commite959e493753c740eb7554bc2191c58b079761e11 (patch)
tree1d791f5a22e7e8c7317a85710710abc0cf3f2d07 /kexec_test
parentd098d61ba4e32f3e5786cb8037e949c2ea5a5b64 (diff)
downloadkexec-tools-e959e493753c740eb7554bc2191c58b079761e11.tar.gz
Only include needed files in distribution tarball
With the recent build changes a number of unneded files crept into tarballs, including .o and .d files. This patch is farily verbose, but hopefully in the long run this system will be obvious enough to be maintainable. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec_test')
-rw-r--r--kexec_test/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/kexec_test/Makefile b/kexec_test/Makefile
index 3f0d0fe..4848fc4 100644
--- a/kexec_test/Makefile
+++ b/kexec_test/Makefile
@@ -4,6 +4,19 @@
RELOC:=0x10000
KEXEC_TEST_SRCS:= kexec_test/kexec_test16.S kexec_test/kexec_test.S
+dist += kexec_test/Makefile $(KEXEC_TEST_SRCS) \
+ kexec_test/x86-setup-legacy-pic.S
+
+BUILD_KEXEC_TEST = no
+ifeq ($(ARCH),i386)
+BUILD_KEXEC_TEST = yes
+endif
+ifeq ($(ARCH),x86_64)
+BUILD_KEXEC_TEST = yes
+endif
+
+ifeq ($(BUILD_KEXEC_TEST),yes)
+
KEXEC_TEST_OBJS = $(call objify, $(KEXEC_TEST_SRCS))
KEXEC_TEST_DEPS = $(call depify, $(KEXEC_TEST_OBJS))
@@ -23,3 +36,5 @@ $(KEXEC_TEST): $(KEXEC_TEST_OBJS)
mkdir -p $(@D)
#$(LINK.o) -o $@ $^
$(LD) $(LDFLAGS) -o $@ $^
+
+endif