paul@376 | 1 | PKGDIR ?= .. |
paul@376 | 2 | L4DIR ?= $(PKGDIR)/../../.. |
paul@376 | 3 | |
paul@376 | 4 | TARGET = exec_region_mapper |
paul@376 | 5 | |
paul@376 | 6 | MODE = static |
paul@376 | 7 | |
paul@376 | 8 | # Relocate the binary to avoid conflicting with actual payloads. |
paul@376 | 9 | |
paul@376 | 10 | DEFAULT_RELOC_x86 := 0xb0000000 |
paul@376 | 11 | DEFAULT_RELOC_arm := 0xb0000000 |
paul@376 | 12 | DEFAULT_RELOC_arm64 := 0xc0000000 |
paul@376 | 13 | DEFAULT_RELOC_ppc32 := 0xb0000000 |
paul@376 | 14 | DEFAULT_RELOC_amd64 := 0x70000000 |
paul@376 | 15 | DEFAULT_RELOC_mips := 0x70000000 |
paul@376 | 16 | |
paul@376 | 17 | # Normal source files. |
paul@376 | 18 | |
paul@509 | 19 | SRC_CC = region_mapper.cc |
paul@376 | 20 | |
paul@376 | 21 | REQUIRES_LIBS = libc libstdc++ libexec libipc |
paul@376 | 22 | PRIVATE_INCDIR = $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) |
paul@376 | 23 | |
paul@376 | 24 | include $(L4DIR)/mk/prog.mk |