1 TEST_GEN_PROGS := switch_endian_test
3 ASFLAGS += -O2 -Wall -g -nostdlib -m64
7 switch_endian_test: check-reversed.S
9 check-reversed.o: check.o
10 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
12 check-reversed.S: check-reversed.o
13 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
16 $(RM) $(TEST_GEN_PROGS) *.o check-reversed.S