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) # List of files in the vdso, has to be asm only for now
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) obj-vdso64 = sigtramp.o gettimeofday.o datapage.o cacheflush.o note.o getcpu.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # Build rules
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) targets := $(obj-vdso64) vdso64.so vdso64.so.dbg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) GCOV_PROFILE := n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) KCOV_INSTRUMENT := n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) UBSAN_SANITIZE := n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ccflags-y := -shared -fno-common -fno-builtin -nostdlib \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	-Wl,-soname=linux-vdso64.so.1 -Wl,--hash-style=both
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) asflags-y := -D__VDSO64__ -s
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) obj-y += vdso64_wrapper.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) targets += vdso64.lds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) CPPFLAGS_vdso64.lds += -P -C -U$(ARCH)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) # Force dependency (incbin is bad)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) # link rule for the .so file, .lds has to be first
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) $(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	$(call if_changed,vdso64ld)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) # strip rule for the .so file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) $(obj)/%.so: OBJCOPYFLAGS := -S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) $(obj)/%.so: $(obj)/%.so.dbg FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	$(call if_changed,objcopy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) # actual build commands
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) quiet_cmd_vdso64ld = VDSO64L $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)       cmd_vdso64ld = $(CC) $(c_flags) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) # install commands for the unstripped file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) quiet_cmd_vdso_install = INSTALL $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)       cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) vdso64.so: $(obj)/vdso64.so.dbg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	@mkdir -p $(MODLIB)/vdso
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	$(call cmd,vdso_install)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) vdso_install: vdso64.so