Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) include ../lib.mk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) uname_M := $(shell uname -m 2>/dev/null || echo not)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) TEST_GEN_PROGS := $(OUTPUT)/vdso_test_gettimeofday $(OUTPUT)/vdso_test_getcpu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) ifeq ($(ARCH),x86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) TEST_GEN_PROGS += $(OUTPUT)/vdso_standalone_test_x86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) ifndef CROSS_COMPILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) CFLAGS := -std=gnu99
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ifeq ($(CONFIG_X86_32),y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) LDLIBS += -lgcc_s
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) all: $(TEST_GEN_PROGS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) $(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) $(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	$(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		vdso_standalone_test_x86.c parse_vdso.c \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 		-o $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) endif