Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/kexec
Date: Tue, 24 Jul 2007 16:05:30 +0200	[thread overview]
Message-ID: <20070724140530.GA19688@aon.at> (raw)
In-Reply-To: <20070724140616.F0451A4683@busybox.net>

On Tue, Jul 24, 2007 at 07:06:16AM -0700, ulf at uclibc.org wrote:
>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
>===================================================================
>--- trunk/buildroot/package/kexec/kexec-patch.sh	                        (rev 0)
>+++ trunk/buildroot/package/kexec/kexec-patch.sh	2007-07-24 14:06:13 UTC (rev 19246)
>@@ -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

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.
>+
>
>
>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
>===================================================================
>--- trunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch	                        (rev 0)
>+++ trunk/buildroot/package/kexec/kexec-tools-003-build-util-using-host-gcc.patch	2007-07-24 14:06:13 UTC (rev 19246)
>@@ -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.

>+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..

>+@@ -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
>===================================================================
>--- trunk/buildroot/package/kexec/kexec.mk	2007-07-24 13:41:05 UTC (rev 19245)
>+++ trunk/buildroot/package/kexec/kexec.mk	2007-07-24 14:06:13 UTC (rev 19246)
>@@ -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

See above.

  reply	other threads:[~2007-07-24 14:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24 14:06 [Buildroot] svn commit: trunk/buildroot/package/kexec ulf at uclibc.org
2007-07-24 14:05 ` Bernhard Fischer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-21 19:13 jacmet at uclibc.org
2008-05-28  1:21 hamish at uclibc.org
2007-10-18  5:26 ulf at uclibc.org
2007-10-18  5:47 ` Hamish Moffatt
2007-10-18  6:16   ` Ulf Samuelsson
2007-07-27  7:34 ulf at uclibc.org
2007-07-27 10:32 ` Bernhard Fischer
2007-01-24 19:11 aldot at uclibc.org
2007-01-23 11:47 aldot at uclibc.org
2007-01-22 14:59 aldot at uclibc.org
2006-12-20 17:40 aldot at uclibc.org
2006-12-20 16:50 aldot at uclibc.org
2006-12-20 17:01 ` Petr Stetiar
2007-01-22 16:45   ` Bernhard Fischer
2006-12-20 14:41 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070724140530.GA19688@aon.at \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox