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-17 09:54:43 -06:00
2016-01-19 22:26:12 +00:00
2016-05-27 20:34:12 -04:00
2016-05-26 20:48:31 -06:00
2016-05-27 15:47:49 -04:00
2016-01-27 08:13:10 -08:00
2015-11-13 10:23:33 +02:00
2016-05-17 09:54:43 -06:00
2015-10-27 11:51:53 +01:00
2015-09-07 13:41:04 +02:00
2016-02-24 18:44:07 -05:00
2015-11-02 10:38:00 +09:00
2016-04-01 17:18:12 -04:00
2016-05-02 18:37:09 -04:00
2016-03-14 19:18:07 -04:00
2016-04-01 17:18:11 -04:00
2015-10-20 18:40:27 +02:00
2016-03-22 12:16:13 -04:00
2015-11-02 10:38:00 +09:00
2016-01-19 08:31:21 -05:00
2016-01-12 10:19:09 -07:00
2016-03-24 09:47:43 +01:00
2015-11-13 10:23:33 +02:00
2015-11-13 10:23:33 +02:00
2016-05-21 01:25:50 +02:00
2015-10-20 18:40:27 +02:00
2015-10-20 18:40:27 +02:00
2016-03-31 17:03:52 +02:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2016-01-21 20:42:36 -07:00
2016-01-24 12:07:19 +08:00
2015-09-21 08:29:46 -07:00
2016-05-17 09:54:43 -06:00
2016-05-24 13:17:59 +02:00
2016-01-20 19:06:23 -07:00
2015-08-18 13:46:05 -04:00
2016-01-21 19:47:29 -07:00
2016-04-01 17:17:40 -04:00
2016-01-19 08:31:21 -05:00
2016-03-14 19:21:44 -04:00
2015-12-16 07:11:15 -05:00
2016-05-17 09:54:43 -06:00
2016-05-27 15:39:45 -04:00
2016-05-27 10:01:12 -04:00
2016-05-17 09:54:43 -06:00
2016-03-29 08:46:23 -07:00
2016-04-25 15:09:40 -04:00
2015-11-19 20:27:50 -07:00
2016-05-24 11:42:04 -05:00
2016-03-17 10:27:22 +08:00
2016-03-14 19:18:42 -04:00
2015-11-19 20:13:40 -07:00
2016-01-19 08:31:21 -05:00
2016-03-14 15:34:50 -06:00
2016-02-24 19:12:32 +01:00
2016-03-14 22:01:26 +01: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-01-21 20:42:36 -07:00
2016-05-20 17:02:07 -04:00
2016-05-20 17:02:07 -04:00
2016-05-27 10:01:10 -04:00
2016-05-27 20:34:12 -04:00
2016-03-15 15:19:23 -04:00
2016-05-03 17:52:11 -05:00
2016-01-28 12:22:19 -06:00
2015-10-20 18:40:27 +02:00
2016-03-14 15:34:50 -06:00
2015-11-12 13:17:31 -05:00
2016-03-14 15:34:50 -06:00
2015-11-12 13:17:32 -05:00
2015-11-12 13:18:58 -05:00
2016-04-10 17:18:42 +02:00
2016-05-05 21:39:26 -04:00
2016-05-21 01:25:50 +02:00
2015-10-29 10:34:00 -07:00
2016-01-27 15:55:54 +01:00
2016-01-19 08:31:21 -05:00
2015-10-29 10:33:58 -07:00
2016-01-19 08:31:21 -05:00
2016-05-17 09:26:53 -07:00
2016-01-19 08:31:21 -05:00
2015-09-01 21:49:20 -05:00
2015-10-29 10:34:00 -07:00
2015-12-13 18:27:28 -08:00
2016-04-06 08:34:09 -07:00
2016-02-24 08:51:13 -08:00
2015-08-25 22:53:57 -05:00
2016-01-28 12:22:49 -06:00
2016-02-24 08:51:13 -08:00
2016-05-18 08:51:46 -07:00
2016-03-29 08:46:20 -07:00
2016-03-29 08:46:19 -07:00
2015-10-29 10:34:00 -07:00
2015-12-07 00:14:59 +01:00
2016-03-29 08:46:23 -07:00
2016-01-07 17:54:53 +01:00
2015-11-12 18:04:10 -05:00
2016-01-13 21:05:08 -05:00
2015-11-27 05:54:21 +01:00
2016-03-17 10:27:24 +08:00
2016-05-17 09:54:43 -06:00
2015-11-12 13:18:59 -05:00
2016-05-31 10:20:14 -04:00
2015-11-19 20:13:42 -07:00
2016-05-17 09:54:43 -06:00
2015-11-19 20:13:41 -07:00
2016-01-24 00:38:40 +01:00
2016-03-14 14:19:11 -04:00
2016-05-26 20:48:31 -06:00
2016-05-26 20:48:31 -06:00
2016-03-08 15:01:47 -05:00
2015-09-11 17:15:20 -04:00
2015-11-19 20:27:50 -07:00
2015-09-02 15:26:12 +02:00
2015-10-29 14:05:50 -05:00
2016-01-08 10:15:42 -05:00
2016-05-26 20:50:29 -06:00
2016-01-20 10:19:40 -05:00
2015-11-09 18: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-05-24 11:39:04 -05:00
2016-03-17 21:27:39 -06:00
2016-01-21 20:42:36 -07:00
2015-11-12 15:58:57 -05:00
2016-05-17 09:54:43 -06:00
2016-01-19 08:31:21 -05:00
2016-02-05 12:47:21 +08:00
2015-10-21 07:46:27 -06:00
2016-01-12 10:19:09 -07:00
2016-03-21 12:42:12 -07:00
2016-03-15 15:19:23 -04:00
2016-05-24 11:42:05 -05:00
2016-04-08 15:42:10 -07:00
2016-01-21 20:42:36 -07:00
2016-01-21 20:42:34 -07:00
2016-05-23 15:18:00 +08:00
2016-03-14 15:34:50 -06:00
2015-10-22 14:18:38 -04:00
2015-09-01 21:37:23 -05:00
2015-11-05 12:58:04 +09:00
2016-03-14 15:34:50 -06:00
2016-03-14 15:34:50 -06:00
2016-03-14 15:34:50 -06:00
2016-04-25 15:10:42 -04:00
2016-05-27 15:47:54 -04:00
2015-08-26 07:54:12 -07:00
2016-02-21 13:42:52 +08:00
2016-01-19 08:31:21 -05:00
2016-05-17 09:54:43 -06:00
2016-05-27 15:41:39 -04:00
2015-11-16 12:01:35 +01:00
2015-10-24 13:50:02 -04:00
2015-11-05 08:24:42 +01:00
2016-02-23 20:50:07 +01:00
2016-01-24 12:07:19 +08:00
2016-05-26 20:48:31 -06:00
2016-02-26 08:53:10 -07:00
2015-10-23 09:42:28 -06:00
2016-01-28 12:23:19 -06:00
2015-08-12 20:47:36 -04:00
2016-03-15 15:12:57 -04:00
2016-03-14 15:34:50 -06:00
2016-01-23 16:22:34 +01:00
2016-03-14 15:34:50 -06:00
2016-05-17 09:54:43 -06:00
2016-05-02 18:37:09 -04:00
2015-11-12 15:58:58 -05:00
2015-08-26 07:54:08 -07:00
2015-08-05 21:06:13 -06:00
2016-01-30 10:55:37 +01:00
2016-01-30 10:58:47 +01:00
2016-01-28 12:22:19 -06:00
2016-01-19 08:31:16 -05:00
2015-10-21 07:46:26 -06:00
2016-01-25 10:39:47 -05:00
2016-05-27 15:39:54 -04:00
2016-01-28 13:53:30 +08:00
2016-03-14 15:34:50 -06:00