Files
u-boot/include
Masahiro Yamada 6f41751f46 Revert "image.h: Tighten up content using handy CONFIG_IS_ENABLED() macro."
This reverts commit 56adbb3872.

Since commit 56adbb3872 ("image.h: Tighten up content using handy
CONFIG_IS_ENABLED() macro."), I found my boards fail to boot Linux
because the commit changed the logic of macros it touched.  Now,
IMAGE_ENABLE_RAMDISK_HIGH and IMAGE_BOOT_GET_CMDLINE are 0 for all
the boards.

As you can see in include/linux/kconfig.h, CONFIG_IS_ENABLE() (and
IS_ENABLED() as well) can only take a macro that is either defined
as 1 or undefined.  This is met for boolean options defined in
Kconfig.  On the other hand, CONFIG_SYS_BOOT_RAMDISK_HIGH and
CONFIG_SYS_BOOT_GET_CMDLINE are defined without any value in
arch/*/include/asm/config.h .  This kind of clean-up is welcome,
but the options should be moved to Kconfig beforehand.

Moreover, CONFIG_IS_ENABLED(SPL_CRC32_SUPPORT) looks weird.
It should be either CONFIG_IS_ENABLED(CRC32_SUPPORT) or
IS_ENABLED(CONFIG_SPL_CRC32_SUPPORT).  But, I see no define for
CONFIG_SPL_CRC32_SUPPORT anywhere.  Likewise for the other three.

The logic of IMAGE_OF_BOARD_SETUP and IMAGE_OF_SYSTEM_SETUP were
also changed for SPL.  This can be a problem for boards defining
CONFIG_SPL_OF_LIBFDT.  I guess it should have been changed to
IS_ENABLED(CONFIG_OF_BOARD_SETUP).

In the first place, if we replace the references in C code,
the macros IMAGE_* will go away.

  if (IS_ENABLED(CONFIG_OF_BOARD_SETUP) {
          ...
  }

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-05-31 10:20:14 -04:00
..
2016-05-27 20:34:12 -04:00
2016-05-26 20:48:31 -06:00
2016-04-01 17:18:12 -04:00
2016-05-02 18:37:09 -04:00
2016-04-01 17:18:11 -04:00
2016-03-22 12:16:13 -04:00
2016-01-12 10:19:09 -07:00
2016-03-24 09:47:43 +01:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2016-01-20 19:06:23 -07:00
2016-03-14 19:21:44 -04:00
2015-11-19 20:27:50 -07:00
2016-02-23 16:14:45 +05:30
2016-01-19 08:31:21 -05:00
2016-05-27 10:23:09 -06:00
2016-05-27 20:34:12 -04:00
2016-05-03 17:52:11 -05:00
2016-01-28 12:22:19 -06:00
2016-03-14 15:34:50 -06:00
2016-03-14 15:34:50 -06:00
2015-11-12 13:18:58 -05:00
2016-01-27 15:55:54 +01:00
2016-01-19 08:31:21 -05:00
2015-08-25 22:53:57 -05:00
2016-03-08 15:01:47 -05:00
2015-09-02 15:26:12 +02:00
2016-01-20 10:19:40 -05:00
2015-11-12 08:26:58 +08:00
2016-01-19 08:31:21 -05:00
2016-05-27 10:01:10 -04:00
2016-01-21 20:42:36 -07:00
2016-02-05 12:47:21 +08:00
2016-03-15 15:19:23 -04:00
2016-01-21 20:42:36 -07:00
2016-01-21 20:42:34 -07:00
2016-03-14 15:34:50 -06:00
2016-05-17 09:54:43 -06:00
2015-11-05 08:24:42 +01:00
2016-05-26 20:48:31 -06:00
2016-02-26 08:53:10 -07:00
2016-05-17 09:54:43 -06:00
2016-05-02 18:37:09 -04:00
2016-01-30 10:58:47 +01:00
2016-01-25 10:39:47 -05:00