) endif ifneq ($(GCC_TOOLCHAIN),) CLANG_GCC_TC := -gcc-toolchain = $(GCC_TOOLCHAIN ) endif KBUILD_CFLAGS += $(CLANG_TARGET ) $(CLANG_GCC_TC ) $(CLANG_PREFIX ) KBUILD_AFLAGS += $(CLANG_TARGET ) $(CLANG_GCC_TC ) $(CLANG_PREFIX ) KBUILD_CFLAGS += $(call cc-option, -no-integrated-as ) KBUILD_AFLAGS += $(call cc-option, -no-integrated-as ) endif # Don't generate position independent code KBUILD_CFLAGS += $(call cc-option,-fno-PIE ) KBUILD_AFLAGS += $(call cc-option,-fno-PIE ) # Read UBOOTRELEASE from include/config/uboot.release (if it exists) UBOOTRELEASE = $(shell cat include/config/uboot.release 2> /dev/null ) UBOOTVERSION = $(VERSION )$(if $(PATCHLEVEL ). KBUILD_LDFLAGS := ifeq ($(cc-name),clang) ifneq ($(CROSS_COMPILE),) CLANG_TARGET := -target = $(notdir $(CROSS_COMPILE:%- =% )) GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD ))) CLANG_PREFIX := -prefix = $(GCC_TOOLCHAIN_DIR ) GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR )/. fno-builtin -ffreestanding $(CSTD_FLAG ) KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing KBUILD_CFLAGS := -Wall -Wstrict-prototypes \ Wbitwise -Wno-return-void -D_CHECK_ENDIAN_ $(CF ) KBUILD_CPPFLAGS := -D_KERNEL_ -D_UBOOT_ DTC_INTREE := $(objtree )/scripts/dtc/dtcĭTC ?= $(DTC_INTREE ) DTC_MIN_VERSION := 010406 CHECK = sparseĬHECKFLAGS := -D_linux_ -Dlinux -D_STDC_ -Dunix -D_unix_ \ If DTC is provided, it is assumed the pylibfdt is available too. # The devicetree compiler and pylibfdt are automatically built unless DTC is # provided. # Always use GNU ld ifneq ($(shell $(CROSS_COMPILE)ld.bfd -v 2> /dev/null),) LD = $(CROSS_COMPILE )ld.bfd Include scripts/Kbuild.include # Make variables (CC, etc.) AS = $(CROSS_COMPILE )as # Determine target architecture for the sandbox include include/host_arch.h ifeq ("", "$(CROSS_COMPILE)") MK_ARCH = " $' ) \ limit = $$ ( printf "%d" $2 ) \ if test $$actual -gt $$limit then \ echo "$1 exceeds file size limit:" >&2 \ echo " limit: $$(printf %#x $$limit) bytes" >&2 \ echo " actual: $$(printf %#x $$actual) bytes" >&2 \ echo " excess: $$(printf %#x $$((actual - limit))) bytes" >&2 \ exit 1 \ fi endef export size_check export KBUILD_MODULES KBUILD_BUILTIN export KBUILD_CHECKSRC KBUILD_SRC KBUILD_EXTMOD # We need some generic definitions (do not try to remake the file). # Do not use make's built-in rules and variables # (this increases performance and avoids hard-to-debug behaviour) MAKEFLAGS += -rR README # Comments in this file are targeted only to the developer, do not # expect to learn how to build the kernel reading this file. This image located in the “server” directory does not support video output, but provides 512 MB RAM for Linux.# SPDX-License-Identifier: GPL-2.0+ VERSION = 2022 PATCHLEVEL = 07 SUBLEVEL = EXTRAVERSION = NAME = # *DOCUMENTATION* # To see a list of typical targets execute "make help" # More info can be located in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |