summaryrefslogtreecommitdiff
path: root/util/pgtblgen/Makefile.inc
blob: c4f3ef37b6fbe5ba8b3923a0158794709ad692ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ifeq ($(CONFIG_ARCH_BOOTBLOCK_X86_64),y)

PGTBLGEN:= $(obj)/pgtblgen

cbfs-files-y += pagetables
pagetables-file := $(obj)/mainboard/$(MAINBOARDDIR)/pagetables
pagetables-type := raw
pagetables-compression := none
pagetables-COREBOOT-position := $(CONFIG_ARCH_X86_64_PGTBL_LOC)

$(obj)/mainboard/$(MAINBOARDDIR)/pagetables: $(PGTBLGEN) $(obj)/config.h
	printf "    TOOL       Creating page tables\n"
	$(PGTBLGEN) -b $(CONFIG_ARCH_X86_64_PGTBL_LOC) -a x86_64 -o $@

$(PGTBLGEN): util/pgtblgen/pgtblgen.c
	printf "    MAKE       Creating PGTBLGEN tool\n"
	$(HOSTCC) $< -I$(obj) -o $@

endif