s390x: Add binary generation to makefile
A message that is not in the archive (sent off-list or not yet received): [email protected]
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --v5SaYin5vWl4oKl89CHp8F9y4z6MBCCbE
Content-Type: multipart/mixed; boundary="BAH37VU9uX0R7LSLbL7GsFGEtzJmBxkI8";
protected-headers="v1"
From: Janosch Frank <[email protected]>
To: David Hildenbrand <[email protected]>, [email protected]
Cc: [email protected], [email protected]
Message-ID: <[email protected]>
Subject: Re: [kvm-unit-tests PATCH v3 09/13] s390x: Add binary generation to
makefile
References: <[email protected]>
<[email protected]> <[email protected]>
In-Reply-To: <[email protected]>
--BAH37VU9uX0R7LSLbL7GsFGEtzJmBxkI8
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Quoted 10 lines · David Hildenbrand
Quoted 9 lines · Janosch Frank
make bin will now generate binaries that can be booted from this or as=
a non ELF kernel boot.
Signed-off-by Janosch Frank <[email protected]>--- s390x/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Quoted 16 lines
Quoted 9 lines
s390x/Makefile +1
-0@@ -10,9 +10,11 @@ tests +=3D $(TEST_DIR)/cmm.elf tests +=3D $(TEST_DIR)/vector.elf tests +=3D $(TEST_DIR)/gs.elf tests +=3D $(TEST_DIR)/iep.elf +test_bins =3D $(patsubst %.elf,%.bin,$(tests))Quoted 5 lines
=20
all: directoriestest_cases
=20
+bin: $(test_bins)
test_cases: $(tests)=20
Maybe a different naming and build it along with "all" ?
Are you sure you want it in "all", the default is KVM elf boot after all?=
Quoted 7 lines
=20
tests_binary=3D $(patsubst %.elf,%.bin,$(tests))
=20
all: directoriestest_casestest_cases_binary
=20test_cases_binary: $(tests_binary)
=20
Sure, fixed the naming
Quoted 10 lines
Quoted 10 lines
=20
CFLAGS +=3D -std=3Dgnu99s390x/Makefile +0
-0@@ -55,8 +57,11 @@ FLATLIBS =3D $(libcflat) $(RM) $(@:.elf=3D.aux.o) @chmod a-x $@=20
+%.bin: %.elfs390x/Makefile +2
-0+ objcopy -O binary $< $@ + arch_clean: asm_offsets_clean
Quoted 8 lines
Quoted 6 lines
s390x/Makefile +1
-1- $(RM) $(TEST_DIR)/*.{o,elf} $(TEST_DIR)/.*.d lib/s390x/.*.d + $(RM) $(TEST_DIR)/*.{o,elf,bin} $(TEST_DIR)/.*.d lib/s390x/.*.d=20
generated-files =3D $(asm-offsets)
$(tests:.elf=3D.o) $(cstart.o) $(cflatobjs): $(generated-files)=20
=20
--BAH37VU9uX0R7LSLbL7GsFGEtzJmBxkI8--
--v5SaYin5vWl4oKl89CHp8F9y4z6MBCCbE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJcGOgxAAoJEONU5rjiOLn4w7oP/3fDtuHAz4vgW5fCNOnRW0ZT +dNtV3IsphLXrp8kNxyB+JMNQkIXEpX5pXPSmrGoCBrdKiEotPmLqxTA/7rE/FJ9 z8pQFymnG5N6Hok0i3QAUDy19SOqMAOwmyCRcB8EHCtV4L1Ywx7yGq7SM/26nGtS Oev0YPInGUKa7BRAiWbs8V1+vWsKH5eEdoMl6UYvpO5rYzTvrPKBTMyozgA4teZ1 CyXiM/25iqw+ykJ83e5jq8LaDc4Nr18wAsBBKlMqPOPNBo/XW9zI4W7gBgt4d7xE OiwxkhCriOuMYtLh+Df7Dg61aNjpxLIX9VqQIT1yOjLjpjnP8JUV++qA6YMsfY0g 8QUPhe7NCYQwYZpx5xkZ40ckjQRTLsdUG4QogM3nF1WH9T0un/kfyNOn2TaOydxo cvZGE21twqPg1ONE2etFgBX53CoeArewQW6ZXNmATZF0GpBGEH2NQd/Wg9Py0N9v Fk/cRDlBbHvmdNeGnEQZGlDzbV860r4gwHdPcFPUW/m5Mwg4S+w7vaaiJQSovcTs ULcmW7vIm3czoNKw03m9z8Oc9WlTBWudHCneyYBPqmhDH4uHKPH/WtRtD4J7LYvG cqsH53dTNa+ZAfrPYQMVdnAIkELPQynGXwoHCxIGsLAGALH5wl4LstpFbYMu+GEF U5SY4gqkloEaw8XeQqRh
=dOyY
-----END PGP SIGNATURE-----
--v5SaYin5vWl4oKl89CHp8F9y4z6MBCCbE--