mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
This test can be used to check wheither kernel supports IPC message queue copy and restore features (required by CRIU project). Signed-off-by: Stanislav Kinsbursky <[email protected]> Cc: Serge Hallyn <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Al Viro <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
26 lines
502 B
Makefile
26 lines
502 B
Makefile
uname_M := $(shell uname -m 2>/dev/null || echo not)
|
|
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
|
|
ifeq ($(ARCH),i386)
|
|
ARCH := X86
|
|
CFLAGS := -DCONFIG_X86_32 -D__i386__
|
|
endif
|
|
ifeq ($(ARCH),x86_64)
|
|
ARCH := X86
|
|
CFLAGS := -DCONFIG_X86_64 -D__x86_64__
|
|
endif
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
all:
|
|
ifeq ($(ARCH),X86)
|
|
gcc $(CFLAGS) msgque.c -o msgque_test
|
|
else
|
|
echo "Not an x86 target, can't build msgque selftest"
|
|
endif
|
|
|
|
run_tests: all
|
|
./msgque_test
|
|
|
|
clean:
|
|
rm -fr ./msgque_test
|