]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - tools/testing/selftests/powerpc/switch_endian/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / tools / testing / selftests / powerpc / switch_endian / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
88baa78d 2TEST_GEN_PROGS := switch_endian_test
4cd968ef
ME
3
4ASFLAGS += -O2 -Wall -g -nostdlib -m64
5
a8ba798b 6EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
80d443e8 7
88baa78d 8include ../../lib.mk
4cd968ef 9
a8ba798b 10$(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
4cd968ef 11
a8ba798b 12$(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
4cd968ef
ME
13 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
14
a8ba798b 15$(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
4cd968ef 16 hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@