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) targets := vmlinux.bin vmlinux.bin.gz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) # uImage build relies on mkimage being availble on your host for ARC target
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) # You will need to build u-boot for ARC, rename mkimage to arc-elf32-mkimage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # and make sure it's reacable from your PATH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) LINUX_START_TEXT = $$(readelf -h vmlinux | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 			grep "Entry point address" | grep -o 0x.*)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) UIMAGE_LOADADDR    = $(CONFIG_LINUX_LINK_BASE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) UIMAGE_ENTRYADDR   = $(LINUX_START_TEXT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) targets += uImage.bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) targets += uImage.gz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) targets += uImage.lzma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extra-y += vmlinux.bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extra-y += vmlinux.bin.gz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extra-y += vmlinux.bin.lzma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) $(obj)/vmlinux.bin: vmlinux FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	$(call if_changed,objcopy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	$(call if_changed,gzip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	$(call if_changed,lzma)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	$(call if_changed,uimage,none)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	$(call if_changed,uimage,gzip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	$(call if_changed,uimage,lzma)