These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / tools / testing / selftests / powerpc / switch_endian / Makefile
1 TEST_PROGS := switch_endian_test
2
3 ASFLAGS += -O2 -Wall -g -nostdlib -m64
4
5 all: $(TEST_PROGS)
6
7 switch_endian_test: check-reversed.S
8
9 check-reversed.o: check.o
10         $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
11
12 check-reversed.S: check-reversed.o
13         hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
14
15 include ../../lib.mk
16
17 clean:
18         rm -f $(TEST_PROGS) *.o check-reversed.S