svn commit: trunk/buildroot/package/kexec
Quoted 26 lines · ulf at uclibc.org
Author: ulf
Date: 2007-07-24 07:06:13 -0700 (Tue, 24 Jul 2007) New Revision: 19246Log:
Patch correctly kexec, make sure utils is built using HOSTCCAdded:
trunk/buildroot/package/kexec/kexec-patch.shtrunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patchModified:
trunk/buildroot/package/kexec/kexec.mkChangeset:
Added:trunk/buildroot/package/kexec/kexec-patch.sh
===================================================================buildroot/package/kexec/kexec-patch.sh +5
-0@@ -0,0 +1,16 @@ +#!/bin/bash +SRCDIR=$1 +PATCHDIR=$2 +PATCHLIST=${PATCHDIR}/$3 +
buildroot/package/kexec/kexec-patch.sh line 15
Quoted 10 lines
buildroot/package/kexec/kexec-patch.sh +10
-0+do_patch() +{ + cd ${SRCDIR} + for f in `cat ${PATCHLIST}` ; do + echo ${PATCHDIR}/$f + cat ${PATCHDIR}/$f | patch -p2 + done +} + +do_patch
No, please don't do such a beast. See package/argus/argus.mk instead for a simple 4-liner that does the same but in the makefile.
Quoted 13 lines
buildroot/package/kexec/kexec-patch.sh +1
-0+Property changes on:
trunk/buildroot/package/kexec/kexec-patch.sh
___________________________________________________________________
Name: svn:executable
+ *Added:
trunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch
===================================================================
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch line 9
Quoted 9 lines
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch +9
-0@@ -0,0 +1,17 @@ +diff -urN kexec-tools-1.101-0rig/util/Makefile kexec-tools-1.101/util/Makefile +--- kexec-tools-1.101-0rig/util/Makefile 2004-12-16 22:08:21.000000000 +0100 ++++ kexec-tools-1.101/util/Makefile 2007-07-24 16:32:48.000000000 +0200 +@@ -1,4 +1,4 @@ + BIN_TO_HEX:= $(OBJDIR)/bin/bin-to-hex + $(BIN_TO_HEX): util/bin-to-hex.c + mkdir -p $(@D) +- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ ++ $(HOSTCC) $(HOST_CFLAGS) $< -o $@
BUILD_CC is perfectly fine. I'd rather add it to TARGET_CONFIGURE_OPTS instead.
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch line 12
Quoted 3 lines
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch +3
-0+diff -urN kexec-tools-1.101-0rig/util/Makefile~ kexec-tools-1.101/util/Makefile~ +--- kexec-tools-1.101-0rig/util/Makefile~ 1970-01-01 01:00:00.000000000 +0100 ++++ kexec-tools-1.101/util/Makefile~ 2004-12-16 22:08:21.000000000 +0100
This is a backup-file and should not be in the patch..
Quoted 22 lines
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch +5
-0+@@ -0,0 +1,4 @@ ++BIN_TO_HEX:= $(OBJDIR)/bin/bin-to-hex ++$(BIN_TO_HEX): util/bin-to-hex.c ++ mkdir -p $(@D) ++ $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@Modified:
trunk/buildroot/package/kexec/kexec.mk
===================================================================buildroot/package/kexec/kexec.mk +2
-1@@ -35,9 +35,10 @@ $(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) - toolchain/patch-kernel.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches \*.patch + package/kexec/kexec-patch.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches 00list +# toolchain/patch-kernel.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches \*.patchendif
buildroot/package/kexec/kexec.mk +1
-1- toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.dpatch + toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.patchtouch $@
Quoted 1 line
$(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked
See above.
Author: ulf
Date: 2007-07-24 07:06:13 -0700 (Tue, 24 Jul 2007) New Revision: 19246
Log:
Patch correctly kexec, make sure utils is built using HOSTCC
Added:
trunk/buildroot/package/kexec/kexec-patch.sh trunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch
Modified:
trunk/buildroot/package/kexec/kexec.mk
Changeset:
Added: trunk/buildroot/package/kexec/kexec-patch.sh
===================================================================
buildroot/package/kexec/kexec-patch.sh +16 -0
@@ -0,0 +1,16 @@ +#!/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 +
Property changes on: trunk/buildroot/package/kexec/kexec-patch.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch
===================================================================
buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch +17 -0
@@ -0,0 +1,17 @@ +diff -urN kexec-tools-1.101-0rig/util/Makefile kexec-tools-1.101/util/Makefile +--- kexec-tools-1.101-0rig/util/Makefile 2004-12-16 22:08:21.000000000 +0100 ++++ kexec-tools-1.101/util/Makefile 2007-07-24 16:32:48.000000000 +0200 +@@ -1,4 +1,4 @@ + BIN_TO_HEX:= $(OBJDIR)/bin/bin-to-hex + $(BIN_TO_HEX): util/bin-to-hex.c + mkdir -p $(@D) +- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ ++ $(HOSTCC) $(HOST_CFLAGS) $< -o $@ +diff -urN kexec-tools-1.101-0rig/util/Makefile~ kexec-tools-1.101/util/Makefile~ +--- kexec-tools-1.101-0rig/util/Makefile~ 1970-01-01 01:00:00.000000000 +0100 ++++ kexec-tools-1.101/util/Makefile~ 2004-12-16 22:08:21.000000000 +0100 +@@ -0,0 +1,4 @@ ++BIN_TO_HEX:= $(OBJDIR)/bin/bin-to-hex ++$(BIN_TO_HEX): util/bin-to-hex.c ++ mkdir -p $(@D) ++ $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
Modified: trunk/buildroot/package/kexec/kexec.mk
===================================================================
buildroot/package/kexec/kexec.mk +3 -2
@@ -35,9 +35,10 @@ $(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) - toolchain/patch-kernel.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches \*.patch + package/kexec/kexec-patch.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches 00list +# toolchain/patch-kernel.sh $(KEXEC_DIR) $(KEXEC_DIR)/debian/patches \*.patch endif - toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.dpatch + toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.patch touch $@ $(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked