a8ba798bc8
Enable O and KBUILD_OUTPUT for kselftest. User could compile kselftest to another directory by passing O or KBUILD_OUTPUT. And O is high priority than KBUILD_OUTPUT. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
16 lines
429 B
Makefile
16 lines
429 B
Makefile
TEST_GEN_PROGS := switch_endian_test
|
|
|
|
ASFLAGS += -O2 -Wall -g -nostdlib -m64
|
|
|
|
EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
|
|
|
|
include ../../lib.mk
|
|
|
|
$(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
|
|
|
|
$(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
|
|
$(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
|
|
|
|
$(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
|
|
hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
|