Patrick Rudolph | b1ef725 | 2019-09-28 17:44:01 +0200 | [diff] [blame] | 1 | ifeq ($(CONFIG_ARCH_BOOTBLOCK_X86_64),y) |
| 2 | |
| 3 | PGTBLGEN:= $(obj)/pgtblgen |
| 4 | |
| 5 | cbfs-files-y += pagetables |
| 6 | pagetables-file := $(obj)/mainboard/$(MAINBOARDDIR)/pagetables |
| 7 | pagetables-type := raw |
| 8 | pagetables-compression := none |
| 9 | pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC) |
| 10 | |
| 11 | $(obj)/mainboard/$(MAINBOARDDIR)/pagetables: $(PGTBLGEN) $(obj)/config.h |
| 12 | printf " TOOL Creating page tables\n" |
| 13 | $(PGTBLGEN) -b $(CONFIG_ARCH_X86_64_PGTBL_LOC) -a x86_64 -o $@ |
| 14 | |
| 15 | $(PGTBLGEN): util/pgtblgen/pgtblgen.c |
| 16 | printf " MAKE Creating PGTBLGEN tool\n" |
Patrick Georgi | 36c2ea4 | 2020-11-25 16:24:05 +0000 | [diff] [blame] | 17 | $(HOSTCC) -std=c99 $< -I$(obj) -o $@ |
Patrick Rudolph | b1ef725 | 2019-09-28 17:44:01 +0200 | [diff] [blame] | 18 | |
| 19 | endif |