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) # alpha/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) # Copyright (C) 1994 by Linus Torvalds
^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) NM := $(NM) -B
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) LDFLAGS_vmlinux	:= -static -N #-relax
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) CHECKFLAGS	+= -D__alpha__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) cflags-y	:= -pipe -mno-fp-regs -ffixed-8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) cflags-y	+= $(call cc-option, -fno-jump-tables)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) cpuflags-$(CONFIG_ALPHA_EV4)		:= -mcpu=ev4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) cpuflags-$(CONFIG_ALPHA_EV5)		:= -mcpu=ev5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) cpuflags-$(CONFIG_ALPHA_EV56)		:= -mcpu=ev56
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) cpuflags-$(CONFIG_ALPHA_POLARIS)	:= -mcpu=pca56
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) cpuflags-$(CONFIG_ALPHA_SX164)		:= -mcpu=pca56
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) cpuflags-$(CONFIG_ALPHA_EV6)		:= -mcpu=ev6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) cpuflags-$(CONFIG_ALPHA_EV67)		:= -mcpu=ev67
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) # If GENERIC, make sure to turn off any instruction set extensions that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) # the host compiler might have on by default.  Given that EV4 and EV5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) # have the same instruction set, prefer EV5 because an EV5 schedule is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) # more likely to keep an EV4 processor busy than vice-versa.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) cpuflags-$(CONFIG_ALPHA_GENERIC)	:= -mcpu=ev5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) cflags-y				+= $(cpuflags-y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) # For TSUNAMI, we must have the assembler not emulate our instructions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) # The same is true for IRONGATE, POLARIS, PYXIS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) # BWX is most important, but we don't really want any emulation ever.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) head-y := arch/alpha/kernel/head.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) core-y				+= arch/alpha/kernel/ arch/alpha/mm/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) core-$(CONFIG_MATHEMU)		+= arch/alpha/math-emu/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) drivers-$(CONFIG_OPROFILE)	+= arch/alpha/oprofile/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) libs-y				+= arch/alpha/lib/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) # export what is needed by arch/alpha/boot/Makefile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) export LIBS_Y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) boot := arch/alpha/boot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #Default target when executing make with no arguments
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) all boot: $(boot)/vmlinux.gz
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) $(boot)/vmlinux.gz: vmlinux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	$(Q)$(MAKE) $(build)=$(boot) $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) bootimage bootpfile bootpzfile: vmlinux
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) archclean:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	$(Q)$(MAKE) $(clean)=$(boot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) archheaders:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	$(Q)$(MAKE) $(build)=arch/alpha/kernel/syscalls all
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) define archhelp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)   echo '* boot		- Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)   echo '  bootimage	- SRM bootable image (arch/alpha/boot/bootimage)'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)   echo '  bootpfile	- BOOTP bootable image (arch/alpha/boot/bootpfile)'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)   echo '  bootpzfile	- compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) endef