[OE-core] [PATCH] u-boot-mkimage: fix a building failure on OpenSus

rongqing.li at windriver.com rongqing.li at windriver.com
Tue Jul 28 02:00:07 UTC 2015


From: Roy Li <rongqing.li at windriver.com>

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 ...-the-creation-of-include-config-auto.conf.patch | 54 ++++++++++++++++++++++
 meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb  |  1 +
 2 files changed, 55 insertions(+)
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage/0001-delay-the-creation-of-include-config-auto.conf.patch

diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-delay-the-creation-of-include-config-auto.conf.patch b/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-delay-the-creation-of-include-config-auto.conf.patch
new file mode 100644
index 0000000..071aa67
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage/0001-delay-the-creation-of-include-config-auto.conf.patch
@@ -0,0 +1,54 @@
+[PATCH] delay the creation of include/config/auto.conf
+
+Upstream-Statue: Pending
+
+config.mk will be included only if auto.conf is newer than .config
+but in some system, the HPET is not enabled, the smallest unit of
+time is second, and can not decise which file is newer, even if
+the correct dependency has been created.
+
+The below shows unit of time:
+
+under SUSE Linux Enterprise Desktop 11 SP2  (i586):
+    $ls --full-time include/config/auto.conf .config
+    2015-07-27 03:46:20.000000000 -0400 .config
+    2015-07-27 03:46:20.000000000 -0400 include/config/auto.conf
+    $
+
+under Ubuntu 14.04 LTS:
+    $ ls --full-time include/config/auto.conf .config
+    2015-07-27 13:40:14.008703027 +0800 .config
+    2015-07-27 13:40:15.020703054 +0800 include/config/auto.conf
+    $
+
+The rule of including config.mk in Makefile as below
+    autoconf_is_current := $(if $(wildcard $(KCONFIG_CONFIG)),$(shell find . \
+                    -path ./include/config/auto.conf -newer $(KCONFIG_CONFIG)))
+    ifneq ($(autoconf_is_current),)
+    include $(srctree)/config.mk
+    include $(srctree)/arch/$(ARCH)/Makefile
+    endif
+
+The compilation will be failed if config.mk is not included
+so delay 1 second to create auto.conf after creating of .config
+
+Signed-off-by: Roy Li <rongqing.li at windriver.com>
+---
+ Makefile | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile b/Makefile
+index 36a9a28..5f085ad 100644
+--- a/Makefile
++++ b/Makefile
+@@ -490,6 +490,7 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
+ # if auto.conf.cmd is missing then we are probably in a cleaned tree so
+ # we execute the config step to be sure to catch updated Kconfig files
+ include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
++	sleep 1; \
+ 	$(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
+ 
+ -include include/autoconf.mk
+-- 
+1.9.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb
index 7735288..c0007c9 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb
@@ -14,6 +14,7 @@ PV = "v2015.01+git${SRCPV}"
 
 SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
            file://gcc5.patch \
+           file://0001-delay-the-creation-of-include-config-auto.conf.patch \
 	   "
 
 S = "${WORKDIR}/git"
-- 
1.9.1




More information about the Openembedded-core mailing list