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) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) # linux/arch/c6x/Makefile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) # This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) # License.  See the file "COPYING" in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) KBUILD_DEFCONFIG := dsk6455_defconfig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) cflags-y += -mno-dsbt -msdata=none -D__linux__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) KBUILD_CFLAGS_MODULE   += -mlong-calls -mno-dsbt -msdata=none
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) CHECKFLAGS      +=
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) KBUILD_CFLAGS   += $(cflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) KBUILD_AFLAGS   += $(cflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) ifdef CONFIG_CPU_BIG_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) KBUILD_CFLAGS   += -mbig-endian
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) KBUILD_AFLAGS   += -mbig-endian
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) LINKFLAGS       += -mbig-endian
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) KBUILD_LDFLAGS  += -mbig-endian -EB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) CHECKFLAGS	+= -D_BIG_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) head-y          := arch/c6x/kernel/head.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) core-y          += arch/c6x/kernel/ arch/c6x/mm/ arch/c6x/platforms/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) libs-y          += arch/c6x/lib/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) # Default to vmlinux.bin, override when needed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) all: vmlinux.bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) boot := arch/$(ARCH)/boot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) # Are we making a dtbImage.<boardname> target? If so, crack out the boardname
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) export DTB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) core-y	+= $(boot)/dts/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) # With make 3.82 we cannot mix normal and wildcard targets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) vmlinux.bin: vmlinux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	$(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) dtbImage.%: vmlinux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	$(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) archclean:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	$(Q)$(MAKE) $(clean)=$(boot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) define archhelp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)   @echo '  vmlinux.bin     - Binary kernel image (arch/$(ARCH)/boot/vmlinux.bin)'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)   @echo '  dtbImage.<dt>   - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)   @echo '                  - stripped elf with fdt blob'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) endef