[Buildroot] [Bug 3007] kexec doesn't build: Missing regdef.h file

ANDY KENNEDY ANDY.KENNEDY at adtran.com
Thu Dec 30 18:15:51 UTC 2010


> On 12/30/10 13:02, ANDY KENNEDY wrote:
> 
> > There's a lot of hard-coded links in it, but I don't know the whole
> > build system enough to use the environmental variables.
> >
> > Gustavo -- if you want to "fix" this patch and plug it in to your
> > branch, that'd be great ;).
> >
> >
> > Andy
> 
> Tried with kexec-tools 2.0.2?
> Seems it doesn't depend on regdef.h any more...

Okay, why then do we not have:

diff -Naur a/package/kexec/Config.in b/package/kexec/Config.in
--- a/package/kexec/Config.in   2010-12-30 09:57:01.000000000 -0600
+++ b/package/kexec/Config.in   2010-12-30 11:44:52.000000000 -0600
@@ -6,6 +6,11 @@
 
 
http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/
 
+config BR2_PACKAGE_KEXEC_VERSION
+       string "kexec version to build"
+       depends on BR2_PACKAGE_KEXEC
+       default "2.0.1"
+
 config BR2_PACKAGE_KEXEC_ZLIB
        bool "Kexec with zlib support"
        depends on BR2_PACKAGE_KEXEC
diff -Naur a/package/kexec/kexec.mk b/package/kexec/kexec.mk
--- a/package/kexec/kexec.mk    2010-12-30 09:57:01.000000000 -0600
+++ b/package/kexec/kexec.mk    2010-12-30 12:04:31.000000000 -0600
@@ -3,9 +3,9 @@
 # kexec
 #
 #############################################################
-KEXEC_VERSION = 2.0.1
+KEXEC_VERSION = $(BR2_PACKAGE_KEXEC_VERSION)
 KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.bz2
-KEXEC_SITE =
$(BR2_KERNEL_MIRROR)/linux/kernel/people/horms/kexec-tools/
+KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
 
 ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
 KEXEC_CONF_OPT += --with-zlib





More information about the buildroot mailing list