The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uboot-tools / 0001-drop-configh-from-tools.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/uboot-tools/0001-drop-configh-from-tools.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/uboot-tools/0001-drop-configh-from-tools.patch
new file mode 100644 (file)
index 0000000..a36332f
--- /dev/null
@@ -0,0 +1,25 @@
+We need to build u-boot tools without a board configuration for the target.
+fw_env just uses config.h to define the default environment of the created
+image, so it really isn't mandatory.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
+index aff471b..dfe7439 100644
+--- a/tools/env/fw_env.h
++++ b/tools/env/fw_env.h
+@@ -5,14 +5,6 @@
+  * SPDX-License-Identifier:   GPL-2.0+
+  */
+-/* Pull in the current config to define the default environment */
+-#ifndef __ASSEMBLY__
+-#define __ASSEMBLY__ /* get only #defines from config.h */
+-#include <config.h>
+-#undef        __ASSEMBLY__
+-#else
+-#include <config.h>
+-#endif
+ /*
+  * To build the utility with the static configuration