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) # arch/h8300/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) # (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) KBUILD_DEFCONFIG := edosk2674_defconfig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) cflags-$(CONFIG_CPU_H8300H)	:= -mh
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) aflags-$(CONFIG_CPU_H8300H)	:= -mh -Wa,--mach=h8300h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ldflags-$(CONFIG_CPU_H8300H)	:= -mh8300helf_linux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) cflags-$(CONFIG_CPU_H8S)	:= -ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) aflags-$(CONFIG_CPU_H8S)	:= -ms -Wa,--mach=h8300s
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) ldflags-$(CONFIG_CPU_H8S)	:= -mh8300self_linux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) KBUILD_CFLAGS += $(cflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) KBUILD_CFLAGS += -mint32 -fno-builtin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) KBUILD_CFLAGS += -D__linux__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) KBUILD_AFLAGS += $(aflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) KBUILD_LDFLAGS += $(ldflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) CHECKFLAGS += -msize-long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) ifeq ($(CROSS_COMPILE),)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) core-y	+= arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) core-y	+= arch/$(ARCH)/boot/dts/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) libs-y	+= arch/$(ARCH)/lib/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) boot := arch/h8300/boot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) archclean:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	$(Q)$(MAKE) $(clean)=$(boot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) define archhelp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)   @echo  'vmlinux.bin  - Create raw binary'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)   @echo  'vmlinux.srec - Create srec binary'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)   @echo  'zImage       - Compressed kernel image'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) endef