2016-11-29 19:55:47 +08:00
|
|
|
TEST_GEN_PROGS := switch_endian_test
|
2015-03-28 21:35:17 +11:00
|
|
|
|
|
|
|
|
ASFLAGS += -O2 -Wall -g -nostdlib -m64
|
|
|
|
|
|
2016-11-29 19:55:51 +08:00
|
|
|
EXTRA_CLEAN = *.o check-reversed.S
|
|
|
|
|
|
2016-11-29 19:55:47 +08:00
|
|
|
include ../../lib.mk
|
2015-03-28 21:35:17 +11:00
|
|
|
|
|
|
|
|
switch_endian_test: check-reversed.S
|
|
|
|
|
|
|
|
|
|
check-reversed.o: check.o
|
|
|
|
|
$(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
|
|
|
|
|
|
|
|
|
|
check-reversed.S: check-reversed.o
|
|
|
|
|
hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
|