coreboot/src
Julius Werner d3634c108d rules.h: Add ENV_ macros to detect current architecture
This patch expands the existing ENV_<stage> macros in <rules.h> with a
set of ENV_<arch> macros which can be used to detect which architecture
the current compilation unit is built for. These are more consistent
than compiler-defined macros (like '#ifdef __arm__') and will make it
easier to write small, architecture-dependent differences in common code
(where we currently often use IS_ENABLED(CONFIG_ARCH_...), which is
technically incorrect in a world where every stage can run on a
different architecture, and merely kinda happened to work out for now).

Also remove a vestigal <arch/rules.h> from ARM64 which was no longer
used, and genericise ARM subarchitecture Makefiles a little to make
things like __COREBOOT_ARM_ARCH__ available from all file types
(including .ld).

BUG=None
TEST=Compiled Falco, Blaze, Jerry and Smaug.

Change-Id: Id51aeb290b5c215c653e42a51919d0838e28621f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/12433
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
2015-11-17 21:31:07 +01:00
..
acpi tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
arch rules.h: Add ENV_ macros to detect current architecture 2015-11-17 21:31:07 +01:00
commonlib commonlib: Remove unused static function. 2015-11-09 12:26:31 +01:00
console src/console: Link die.c in bootblock without BOOTBLOCK_CONSOLE 2015-11-17 16:28:25 +01:00
cpu intel/fsp_model_406dx: Load APs microcode in model_406dx_init 2015-11-16 17:41:00 +01:00
device tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
drivers intel/fsp1_0: Use dummy microcode when calling FSP TempRamInit 2015-11-16 17:42:36 +01:00
ec tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
include rules.h: Add ENV_ macros to detect current architecture 2015-11-17 21:31:07 +01:00
lib arm/arm64: Generalize bootblock C entry point 2015-11-11 05:08:07 +01:00
mainboard newisys: Remove mainboard directory and Kconfig files 2015-11-13 01:30:32 +01:00
northbridge northbridge/intel/fsp_sandybridge: remove blank line 2015-11-17 16:46:49 +01:00
soc fsp_baytrail: use external microcode .h files 2015-11-17 00:12:35 +01:00
southbridge src/southbridge/amd/sr5650: Always configure lane director on startup 2015-11-15 02:46:57 +01:00
superio Revert "Drop SuperIO nuvoton/nct6779d" 2015-11-16 17:44:54 +01:00
vendorcode AMD Merlin Falcon: update vendorcode header files to CarrizoPI 1.1.0.1 2015-11-12 22:42:04 +01:00
Kconfig arm64: Implement generic stage transitions for non-Tegra SoCs 2015-11-16 21:53:43 +01:00