build: Add stage0 hex2 test.
[mes.git] / stage0 / stage0.make
1 ifneq ($(HEX2),)
2 CLEAN+=$(OUT)/exit42
3 $(OUT)/exit42: stage0/elf32-header-exit-42.hex2 stage0/elf32-body-exit-42.hex2 stage0/elf32-footer-exit-42.hex2
4         @echo "  HEX2   $(notdir $^) -> $(notdir $@)"
5         $(QUIET)$(HEX2) -f stage0/elf32-header-exit-42.hex2 -f stage0/elf32-body-exit-42.hex2 -f stage0/elf32-footer-exit-42.hex2 --LittleEndian --Architecture 1 --BaseAddress 0x1000000 > $@
6         chmod +x $@
7 TARGET:=exit42
8 EXPECT:=42
9 include make/check.make
10 endif