![]() Specifically kernel interfaces with opensbi and uboot and hardware and has certain dtb expectation. It is unknown if these components will be compatible with future board revisions or may require changes and rebuilds. * u-boot build embedds FU540 dtb and OpenSBI at a particular interface versions. elfĪs those will be consumed by livecd-rootfs when building bootable preinstalled images. usr/lib/ u-boot/ sifive_ fu540/u- boot.bin ![]() usr/lib/ u-boot/ sifive_ fu540/u- boot-spl. sh, whereas fixed u-boot package will not. * A missbuilt package will have the Warning emitted by mkimage_ fit_opensbi. WARNING: OpenSBI binary "fw_dynamic.bin" not found, resulting binary is not functional. sh" \Īrch/riscv/ dts/hifive- unleashed- a00.dtb > s >/"arch/ riscv/lib/ mkimage_ fit_opensbi. Currently those are missbuilt and not packaged. * To build bootable uboot-sifive package, it must be built with opensbi. git \) \Įxport RCS_TAR_IGNORE := -exclude SCCS -exclude BitKeeper -exclude. statements export RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name. export MODVERDIR := $(if $(KBUILD_EXTMOD ), $(firstword $(KBUILD_EXTMOD ))/ ).tmp_versions The kernel tree might # even be read-only. $(SUBLEVEL )))$(EXTRAVERSION ) export VERSION PATCHLEVEL SUBLEVEL UBOOTRELEASE UBOOTVERSION export ARCH CPU BOARD VENDOR SOC CPUDIR BOARDDIR export CONFIG_SHELL HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC export CPP AR NM LDR STRIP OBJCOPY OBJDUMP KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS export MAKE LEX YACC AWK PERL PYTHON PYTHON2 PYTHON3 export HOSTCXX KBUILD_HOSTCXXFLAGS CHECK CHECKFLAGS DTC DTC_FLAGS export KBUILD_CPPFLAGS NOSTDINC_FLAGS UBOOTINCLUDE OBJCOPYFLAGS KBUILD_LDFLAGS export KBUILD_CFLAGS KBUILD_AFLAGS export CC_VERSION_TEXT := $(shell $(CC ) -version | head -n 1 ) # When compiling out-of-tree modules, put MODVERDIR in the module # tree rather than in the kernel tree. ) 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:" >
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |