File Index
Files and directories
Sign in
FILE

Makefile

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/powerpc/switch_endian/Makefile MAKEFILE
 1# SPDX-License-Identifier: GPL-2.0
 2TEST_GEN_PROGS := switch_endian_test
 3
 4EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
 5
 6top_srcdir = ../../../../..
 7include ../../lib.mk
 8include ../flags.mk
 9
10ASFLAGS += -O2 -Wall -g -nostdlib -m64
11
12$(OUTPUT)/switch_endian_test: ASFLAGS += -I $(OUTPUT)
13$(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
14
15$(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
16	$(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
17
18$(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
19	hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
~/ Read-only file preview.