Home | History | Annotate | Download | only in switch_endian
      1 TEST_GEN_PROGS := switch_endian_test
      2 
      3 ASFLAGS += -O2 -Wall -g -nostdlib -m64
      4 
      5 EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
      6 
      7 include ../../lib.mk
      8 
      9 $(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
     10 
     11 $(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
     12 	$(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
     13 
     14 $(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
     15 	hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
     16