| 1 |
|
| 2 |
|
| 3 |
ifeq ($(CONFIG_ARCH_ARMV8_EXTENSION),0) |
| 4 |
march = armv8-a |
| 5 |
else |
| 6 |
march = armv8.$(CONFIG_ARCH_ARMV8_EXTENSION)-a |
| 7 |
endif |
| 8 |
|
| 9 |
armv8_flags = -march=$(march) -I$(src)/arch/arm64/include/armv8/ -D__COREBOOT_ARM_ARCH__=8 |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARMV8_64),y) |
| 15 |
|
| 16 |
ifneq ($(CONFIG_BOOTBLOCK_CUSTOM),y) |
| 17 |
decompressor-y += bootblock.S |
| 18 |
ifneq ($(CONFIG_COMPRESS_BOOTBLOCK),y) |
| 19 |
bootblock-y += bootblock.S |
| 20 |
endif |
| 21 |
endif |
| 22 |
decompressor-y += cpu.S |
| 23 |
bootblock-y += cpu.S |
| 24 |
decompressor-y += cache.c |
| 25 |
bootblock-y += cache.c |
| 26 |
decompressor-y += mmu.c |
| 27 |
bootblock-y += mmu.c |
| 28 |
|
| 29 |
bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += exception.c |
| 30 |
|
| 31 |
decompressor-generic-ccopts += $(armv8_flags) |
| 32 |
bootblock-generic-ccopts += $(armv8_flags) |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
decompressor-c-ccopts += -mstrict-align |
| 38 |
bootblock-c-ccopts += -mstrict-align |
| 39 |
|
| 40 |
endif |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
ifeq ($(CONFIG_ARCH_VERSTAGE_ARMV8_64),y) |
| 46 |
|
| 47 |
verstage-y += cache.c |
| 48 |
verstage-y += cpu.S |
| 49 |
verstage-y += exception.c |
| 50 |
|
| 51 |
verstage-generic-ccopts += $(armv8_flags) |
| 52 |
|
| 53 |
endif |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
ifeq ($(CONFIG_ARCH_ROMSTAGE_ARMV8_64),y) |
| 59 |
|
| 60 |
romstage-y += cache.c |
| 61 |
romstage-y += cpu.S |
| 62 |
romstage-y += exception.c |
| 63 |
romstage-y += mmu.c |
| 64 |
|
| 65 |
romstage-generic-ccopts += $(armv8_flags) |
| 66 |
|
| 67 |
rmodules_arm64-generic-ccopts += $(armv8_flags) |
| 68 |
|
| 69 |
endif |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
ifeq ($(CONFIG_ARCH_RAMSTAGE_ARMV8_64),y) |
| 75 |
|
| 76 |
ramstage-y += cache.c |
| 77 |
ramstage-y += cpu.S |
| 78 |
ramstage-y += exception.c |
| 79 |
ramstage-y += mmu.c |
| 80 |
|
| 81 |
ramstage-generic-ccopts += $(armv8_flags) |
| 82 |
|
| 83 |
rmodules_arm64-generic-ccopts += $(armv8_flags) |
| 84 |
|
| 85 |
endif |