arm-trusted-firmware/plat/arm/board/juno
Masahiro Yamada 3d8256b2a1 Use #ifdef for IMAGE_BL* instead of #if
One nasty part of ATF is some of boolean macros are always defined
as 1 or 0, and the rest of them are only defined under certain
conditions.

For the former group, "#if FOO" or "#if !FOO" must be used because
"#ifdef FOO" is always true.  (Options passed by $(call add_define,)
are the cases.)

For the latter, "#ifdef FOO" or "#ifndef FOO" should be used because
checking the value of an undefined macro is strange.

Here, IMAGE_BL* is handled by make_helpers/build_macro.mk like
follows:

  $(eval IMAGE := IMAGE_BL$(call uppercase,$(3)))

  $(OBJ): $(2)
          @echo "  CC      $$<"
          $$(Q)$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -D$(IMAGE) -c $$< -o $$@

This means, IMAGE_BL* is defined when building the corresponding
image, but *undefined* for the other images.

So, IMAGE_BL* belongs to the latter group where we should use #ifdef
or #ifndef.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-01-24 01:01:21 +09:00
..
aarch64 Define and use no_ret macro where no return is expected 2016-12-05 14:55:35 +00:00
include Use #ifdef for IMAGE_BL* instead of #if 2017-01-24 01:01:21 +09:00
tsp Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
juno_bl1_setup.c FWU: Pass client cookie to FWU_SMC_UPDATE_DONE 2015-12-15 14:33:25 +00:00
juno_def.h Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
juno_err.c Add WFI in platform's unexpected error handlers 2016-08-19 14:04:03 +01:00
juno_pm.c Allow ARM Standard platforms to dynamically define PSCI capability 2016-12-07 12:45:55 +00:00
juno_security.c Migrate ARM standard platforms to the refactored TZC driver 2016-03-31 21:23:23 +01:00
juno_topology.c Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
platform.mk ARM platforms: Define common image sizes 2016-07-25 12:04:31 +01:00