coreboot/src/include
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
..
boot
console
cpu
device
pc80
smp
superio
tpm_lite
antirollback.h
assert.h
assets.h
b64_decode.h
base3.h
bcd.h
boardid.h
boot_device.h
bootblock_common.h
bootmem.h
bootmode.h
bootstate.h
cbfs.h
cbmem.h
delay.h
edid.h
elog.h
endian.h
fallback.h
fmap.h
gic.h
gpio.h
halt.h
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h
memlayout.h
memory_info.h
memrange.h
option.h
program_loading.h
reg_script.h
reset.h
rmodule.h
romstage_handoff.h
rtc.h
rules.h rules.h: Add ENV_ macros to detect current architecture 2015-11-17 21:31:07 +01:00
sdram_mode.h
smbios.h
spd.h
spd_cache.h
spd_ddr2.h
spi-generic.h
spi_flash.h
stage_cache.h
stddef.h
stdlib.h
string.h
swab.h
symbols.h
thread.h
timer.h
timestamp.h
tpm.h
trace.h
types.h
vbe.h
version.h
watchdog.h