mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 21:55:10 +07:00
ae78581805
With the previous patch, the installation method change from install
to rsync. There is no need to create subdir during test, the
default EMIT_TESTS is enough.
This patch essentially revert commit 84cbd9e4
("selftests/exec: do not
install subdir as it is already created").
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
27 lines
470 B
Makefile
27 lines
470 B
Makefile
CFLAGS = -Wall
|
|
BINARIES = execveat
|
|
DEPS = execveat.symlink execveat.denatured script subdir
|
|
all: $(BINARIES) $(DEPS)
|
|
|
|
subdir:
|
|
mkdir -p $@
|
|
script:
|
|
echo '#!/bin/sh' > $@
|
|
echo 'exit $$*' >> $@
|
|
chmod +x $@
|
|
execveat.symlink: execveat
|
|
ln -s -f $< $@
|
|
execveat.denatured: execveat
|
|
cp $< $@
|
|
chmod -x $@
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
TEST_PROGS := execveat
|
|
TEST_FILES := $(DEPS)
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx*
|