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) # The gate DSO image is built using a special linker script.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) targets += gate.so gate.lds gate.o gate-dummy.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) obj-y += gate-syms.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) CPPFLAGS_gate.lds := -P -C -U$(ARCH)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) quiet_cmd_gate = GATE    $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)       cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 		     -Wl,--hash-style=sysv
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) $(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	$(call if_changed,gate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) GATECFLAGS_gate-dummy.o = -r
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) $(obj)/gate-dummy.o: $(obj)/gate.lds $(obj)/gate.o FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	$(call if_changed,gate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) LDFLAGS_gate-syms.o := -r -R
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) $(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	$(call if_changed,ld)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) # gate-data.o contains the gate DSO image as data in section .data..gate.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) # We must build gate.so before we can assemble it.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) # Note: kbuild does not track this dependency due to usage of .incbin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) $(obj)/gate-data.o: $(obj)/gate.so