Patch kexec inside makefile

This commit is contained in:
Ulf Samuelsson 2007-07-27 07:34:44 +00:00
parent 0155044c85
commit a0511a1291
2 changed files with 4 additions and 19 deletions

View File

@ -1,16 +0,0 @@
#!/bin/bash
SRCDIR=$1
PATCHDIR=$2
PATCHLIST=${PATCHDIR}/$3
do_patch()
{
cd ${SRCDIR}
for f in `cat ${PATCHLIST}` ; do
echo ${PATCHDIR}/$f
cat ${PATCHDIR}/$f | patch -p2
done
}
do_patch

View File

@ -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 $@