Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84f887bf authored by Michael Ellerman's avatar Michael Ellerman Committed by Shuah Khan
Browse files

selftests: Set CC using CROSS_COMPILE once in lib.mk



This avoids repeating the logic in every Makefile. We mimic the
top-level Makefile and use $(CROSS_COMPILE)gcc.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 6faeeea4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall

test_objs = open-unlink create-read
+0 −1
Original line number Diff line number Diff line
CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall
BINARIES = execveat
DEPS = execveat.symlink execveat.denatured script subdir
+0 −1
Original line number Diff line number Diff line
CC := $(CROSS_COMPILE)$(CC)
CFLAGS += -I../../../../usr/include/

all: kcmp_test
+4 −0
Original line number Diff line number Diff line
# This mimics the top-level Makefile. We do it explicitly here so that this
# Makefile can operate with or without the kbuild infrastructure.
CC := $(CROSS_COMPILE)gcc

define RUN_TESTS
	@for TEST in $(TEST_PROGS); do \
		(./$$TEST && echo "selftests: $$TEST [PASS]") || echo "selftests: $$TEST [FAIL]"; \
+0 −1
Original line number Diff line number Diff line
# Makefile for net selftests

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall -O2 -g

CFLAGS += -I../../../../usr/include/
Loading