mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 07:44:23 +08:00
80d443e887
Some testcases need the clean extra data after running. This patch introduce the "EXTRA_CLEAN" variable to address this requirement. After KBUILD_OUTPUT is enabled in later patch, it will be easy to decide to if we need do the cleanup in the KBUILD_OUTPUT path(if the testcase ran immediately after compiled). Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
16 lines
349 B
Makefile
16 lines
349 B
Makefile
TEST_GEN_PROGS := switch_endian_test
|
|
|
|
ASFLAGS += -O2 -Wall -g -nostdlib -m64
|
|
|
|
EXTRA_CLEAN = *.o check-reversed.S
|
|
|
|
include ../../lib.mk
|
|
|
|
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"' $< > $@
|