svn commit: trunk/buildroot/package/kexec
Author: aldot
Date: 2007-01-22 06:59:06 -0800 (Mon, 22 Jan 2007) New Revision: 17462
Log:
- the arm patch broke anybody else.
- restructure patches per task they fulfil
Added:
trunk/buildroot/package/kexec/kexec-tools-001-smaller-reboot.patch trunk/buildroot/package/kexec/kexec-tools-002-add-arch-arm.patch
Removed:
trunk/buildroot/package/kexec/kexec-tools-arm.patch trunk/buildroot/package/kexec/kexec-tools-my_shutdown-args.patch
Modified:
trunk/buildroot/package/kexec/kexec.mk
Changeset:
Added: trunk/buildroot/package/kexec/kexec-tools-001-smaller-reboot.patch
===================================================================
buildroot/package/kexec/kexec-tools-001-smaller-reboot.patch +27 -0
@@ -0,0 +1,27 @@ +--- kexec-tools-1.101.orig/kexec/kexec.c 2006-09-20 04:39:38.000000000 +0200 ++++ kexec-tools-1.101/kexec/kexec.c 2007-01-22 15:58:30.000000000 +0100 +@@ -630,19 +630,14 @@ int k_unload (unsigned long kexec_flags) + */ + static int my_shutdown(void) + { +- char *args[8]; +- int i = 0; ++ char *args[2]; + +- args[i++] = "shutdown"; +- args[i++] = "-r"; +- args[i++] = "now"; +- args[i++] = NULL; ++ args[0] = "reboot"; ++ args[1] = NULL; + +- execv("/sbin/shutdown", args); +- execv("/etc/shutdown", args); +- execv("/bin/shutdown", args); ++ execv("/sbin/reboot", args); + +- perror("shutdown"); ++ perror("reboot"); + return -1; + } +
Added: trunk/buildroot/package/kexec/kexec-tools-002-add-arch-arm.patch
===================================================================
buildroot/package/kexec/kexec-tools-002-add-arch-arm.patch +387 -0
387 lines not on this page · raw message
Deleted: trunk/buildroot/package/kexec/kexec-tools-arm.patch
===================================================================
buildroot/package/kexec/kexec-tools-arm.patch +0 -466
466 lines not on this page · raw message
Deleted: trunk/buildroot/package/kexec/kexec-tools-my_shutdown-args.patch
===================================================================
buildroot/package/kexec/kexec-tools-my_shutdown-args.patch +0 -12
@@ -1,12 +0,0 @@ -diff -rup kexec-tools-1.101.orig/kexec/kexec.c kexec-tools-1.101/kexec/kexec.c ---- kexec-tools-1.101.orig/kexec/kexec.c 2006-12-20 18:40:26.000000000 +0100 -+++ kexec-tools-1.101/kexec/kexec.c 2006-12-20 18:41:02.000000000 +0100 -@@ -629,7 +629,7 @@ int k_unload (unsigned long kexec_flags) - */ - static int my_shutdown(void) - { -- char *args[8]; -+ char *args[2]; - - args[0] = "reboot"; - args[1] = NULL;
Modified: trunk/buildroot/package/kexec/kexec.mk
===================================================================
buildroot/package/kexec/kexec.mk +1 -1
@@ -33,11 +33,11 @@ $(KEXEC_DIR)/.unpacked: $(DL_DIR)/$(KEXEC_SOURCE) $(DL_DIR)/$(KEXEC_PATCH) $(KEXEC_CAT) $(DL_DIR)/$(KEXEC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.patch 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 endif + toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.dpatch touch $(KEXEC_DIR)/.unpacked $(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked