s390x: Add binary generation to makefile
Thomas Huth
Reviewed-byQuoted 2 lines · Janosch Frank
make bin will now generate binaries that can be booted from disk or as a non ELF kernel boot.
s/make bin/make test_cases_binary/ ?
Quoted 28 lines
Signed-off-by Janosch Frank <[email protected]>Reviewed-by David Hildenbrand <[email protected]>--- s390x/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)s390x/Makefile +3
-1@@ -10,10 +10,12 @@ tests += $(TEST_DIR)/cmm.elf tests += $(TEST_DIR)/vector.elf tests += $(TEST_DIR)/gs.elf tests += $(TEST_DIR)/iep.elf +tests_binary = $(patsubst %.elf,%.bin,$(tests)) -all: directories test_cases +all: directories test_cases test_cases_binary test_cases: $(tests) +test_cases_binary: $(tests_binary) CFLAGS += -std=gnu99 CFLAGS += -ffreestanding@@ -55,8 +57,11 @@ FLATLIBS = $(libcflat) $(RM) $(@:.elf=.aux.o) @chmod a-x $@
s390x/Makefile FLATLIBS = $(libcflat) · line 67
Quoted 10 lines
s390x/Makefile +4
-1+%.bin: %.elf + $(OBJCOPY) -O binary $< $@ + arch_clean: asm_offsets_clean - $(RM) $(TEST_DIR)/*.{o,elf} $(TEST_DIR)/.*.d lib/s390x/.*.d + $(RM) $(TEST_DIR)/*.{o,elf,bin} $(TEST_DIR)/.*.d lib/s390x/.*.d generated-files = $(asm-offsets) $(tests:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
Reviewed-by Thomas Huth <[email protected]>