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-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) # tools/power/acpi/Makefile.config - ACPI tool Makefile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) # Copyright (c) 2015, Intel Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #   Author: Lv Zheng <lv.zheng@intel.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) ifeq ($(srctree),)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) srctree := $(patsubst %/,%,$(dir $(shell pwd)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) srctree := $(patsubst %/,%,$(dir $(srctree)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #$(info Determined 'srctree' to be $(srctree))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) include $(srctree)/../../scripts/Makefile.include
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) OUTPUT=$(srctree)/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) ifeq ("$(origin O)", "command line")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	OUTPUT := $(O)/tools/power/acpi/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #$(info Determined 'OUTPUT' to be $(OUTPUT))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) # --- CONFIGURATION BEGIN ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) # Set the following to `true' to make a unstripped, unoptimized
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) # binary. Leave this set to `false' for production use.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) DEBUG ?=	true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) # make the build silent. Set this to something else to make it noisy again.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) V ?=		false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) # Prefix to the directories we're installing to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) DESTDIR ?=
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) # --- CONFIGURATION END ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) # Directory definitions. These are default and most probably
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) # do not need to be changed. Please note that DESTDIR is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) # added in front of any of them
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) bindir ?=	/usr/bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) sbindir ?=	/usr/sbin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) mandir ?=	/usr/man
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) # Toolchain: what tools do we use, and what options do they need:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) INSTALL = /usr/bin/install -c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) INSTALL_PROGRAM = ${INSTALL}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) INSTALL_DATA  = ${INSTALL} -m 644
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) INSTALL_SCRIPT = ${INSTALL_PROGRAM}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) # If you are running a cross compiler, you may want to set this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) # to something more interesting, like "arm-linux-".  If you want
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) # to compile vs uClibc, that can be done here as well.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) CROSS_COMPILE ?= $(CROSS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) LD = $(CC)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) # check if compiler option is supported
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -x c /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) # use '-Os' optimization if available, else use -O2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) OPTIMIZATION := $(call cc-supports,-Os,-O2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) WARNINGS := -Wall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) WARNINGS += $(call cc-supports,-Wstrict-prototypes)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) WARNINGS += $(call cc-supports,-Wdeclaration-after-statement)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) KERNEL_INCLUDE := $(OUTPUT)include
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) ACPICA_INCLUDE := $(srctree)/../../../drivers/acpi/acpica
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) CFLAGS += -D_LINUX -I$(KERNEL_INCLUDE) -I$(ACPICA_INCLUDE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) CFLAGS += $(WARNINGS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) ifeq ($(strip $(V)),false)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 	QUIET=@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) 	ECHO=@echo
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) 	QUIET=
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) 	ECHO=@\#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) # if DEBUG is enabled, then we do not strip or optimize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) ifeq ($(strip $(DEBUG)),true)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) 	CFLAGS += -O1 -g -DDEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) 	STRIPCMD = /bin/true -Since_we_are_debugging
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) 	CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) 	STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) endif