Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 1 | # |
Andrew Jones | 3ea0723 | 2015-07-17 14:48:34 +0200 | [diff] [blame] | 2 | # ppc64 makefile |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 3 | # |
| 4 | # Authors: Andrew Jones <drjones@redhat.com> |
| 5 | # |
| 6 | bits = 64 |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 7 | |
Laurent Vivier | f1ccf5d | 2016-03-01 10:35:30 +0100 | [diff] [blame] | 8 | ifeq ($(ENDIAN),little) |
| 9 | arch_CFLAGS = -mlittle-endian |
| 10 | arch_LDFLAGS = -EL |
| 11 | else |
| 12 | arch_CFLAGS = -mbig-endian |
| 13 | arch_LDFLAGS = -EB |
| 14 | endif |
Laurent Vivier | 810e972 | 2016-02-26 18:08:45 +0100 | [diff] [blame] | 15 | |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 16 | cstart.o = $(TEST_DIR)/cstart64.o |
Andrew Jones | de9d141 | 2015-07-21 03:02:05 +0200 | [diff] [blame] | 17 | reloc.o = $(TEST_DIR)/reloc64.o |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 18 | |
Thomas Huth | 330774d | 2017-05-12 17:40:00 +0100 | [diff] [blame] | 19 | OBJDIRS += lib/ppc64 |
| 20 | |
Andrew Jones | 3ea0723 | 2015-07-17 14:48:34 +0200 | [diff] [blame] | 21 | # ppc64 specific tests |
Nicholas Piggin | e7324a4 | 2023-06-08 17:58:21 +1000 | [diff] [blame] | 22 | tests = $(TEST_DIR)/spapr_vpa.elf |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 23 | |
Alex Bennée | 6d90fad | 2017-05-12 17:39:56 +0100 | [diff] [blame] | 24 | include $(SRCDIR)/$(TEST_DIR)/Makefile.common |
Andrew Jones | 1e95c7c | 2016-02-13 09:08:00 +0100 | [diff] [blame] | 25 | |
Andrew Jones | 3ea0723 | 2015-07-17 14:48:34 +0200 | [diff] [blame] | 26 | arch_clean: powerpc_clean |
| 27 | $(RM) lib/ppc64/.*.d |