blob: b0ed2b104944850dd72799fd3480dc48b2364b54 [file] [log] [blame]
Andrew Jones1e95c7c2016-02-13 09:08:00 +01001#
Andrew Jones3ea07232015-07-17 14:48:34 +02002# ppc64 makefile
Andrew Jones1e95c7c2016-02-13 09:08:00 +01003#
4# Authors: Andrew Jones <drjones@redhat.com>
5#
6bits = 64
Andrew Jones1e95c7c2016-02-13 09:08:00 +01007
Laurent Vivierf1ccf5d2016-03-01 10:35:30 +01008ifeq ($(ENDIAN),little)
9 arch_CFLAGS = -mlittle-endian
10 arch_LDFLAGS = -EL
11else
12 arch_CFLAGS = -mbig-endian
13 arch_LDFLAGS = -EB
14endif
Laurent Vivier810e9722016-02-26 18:08:45 +010015
Andrew Jones1e95c7c2016-02-13 09:08:00 +010016cstart.o = $(TEST_DIR)/cstart64.o
Andrew Jonesde9d1412015-07-21 03:02:05 +020017reloc.o = $(TEST_DIR)/reloc64.o
Andrew Jones1e95c7c2016-02-13 09:08:00 +010018
Thomas Huth330774d2017-05-12 17:40:00 +010019OBJDIRS += lib/ppc64
20
Andrew Jones3ea07232015-07-17 14:48:34 +020021# ppc64 specific tests
Nicholas Piggine7324a42023-06-08 17:58:21 +100022tests = $(TEST_DIR)/spapr_vpa.elf
Andrew Jones1e95c7c2016-02-13 09:08:00 +010023
Alex Bennée6d90fad2017-05-12 17:39:56 +010024include $(SRCDIR)/$(TEST_DIR)/Makefile.common
Andrew Jones1e95c7c2016-02-13 09:08:00 +010025
Andrew Jones3ea07232015-07-17 14:48:34 +020026arch_clean: powerpc_clean
27 $(RM) lib/ppc64/.*.d