summaryrefslogtreecommitdiff
path: root/package/kexec/kexec.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-27 07:34:44 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-27 07:34:44 +0000
commita0511a12917f1478b00e57254e50a42fbb26d8a5 (patch)
tree9b7515875a8541b4fb499ab076f4d6a52246285c /package/kexec/kexec.mk
parent0155044c8557df2571dbcba4d91936eecf7fb124 (diff)
Patch kexec inside makefile
Diffstat (limited to 'package/kexec/kexec.mk')
-rw-r--r--package/kexec/kexec.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/kexec/kexec.mk b/package/kexec/kexec.mk
index c6155194f..a7c218b2d 100644
--- a/package/kexec/kexec.mk
+++ b/package/kexec/kexec.mk
@@ -34,9 +34,10 @@ kexec-source: $(DL_DIR)/$(KEXEC_SOURCE) $(DL_DIR)/$(KEXEC_PATCH)
$(KEXEC_DIR)/.unpacked: $(DL_DIR)/$(KEXEC_SOURCE) $(DL_DIR)/$(KEXEC_PATCH)
$(KEXEC_CAT) $(DL_DIR)/$(KEXEC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
ifneq ($(KEXEC_PATCH),)
- (cd $(KEXEC_DIR) && $(KEXEC_CAT) $(DL_DIR)/$(KEXEC_PATCH) | patch -p1)
- package/kexec/kexec-patch.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches 00list
-# toolchain/patch-kernel.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches \*.patch
+ (cd $(KEXEC_DIR) && $(KEXEC_CAT) $(DL_DIR)/$(KEXEC_PATCH) | patch -p1; \
+ for f in `cat debian/patches/00list` ; do \
+ cat debian/patches/$$f | patch -p2 ; \
+ done)
endif
toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.patch
touch $@