1################################################################################ 2# 3# boot-wrapper-aarch64 4# 5################################################################################ 6 7BOOT_WRAPPER_AARCH64_VERSION = 8d5a765251d9113c3c0f9fa14de42a9e7486fe8a 8BOOT_WRAPPER_AARCH64_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/mark/boot-wrapper-aarch64.git 9BOOT_WRAPPER_AARCH64_LICENSE = BSD-3-Clause 10BOOT_WRAPPER_AARCH64_LICENSE_FILES = LICENSE.txt 11BOOT_WRAPPER_AARCH64_DEPENDENCIES = linux 12BOOT_WRAPPER_AARCH64_INSTALL_IMAGES = YES 13 14# The Git repository does not have the generated configure script and 15# Makefile. 16BOOT_WRAPPER_AARCH64_AUTORECONF = YES 17 18BOOT_WRAPPER_AARCH64_DTB = $(LINUX_DIR)/arch/arm64/boot/dts/$(basename $(call qstrip,$(BR2_TARGET_BOOT_WRAPPER_AARCH64_DTS))).dtb 19 20BOOT_WRAPPER_AARCH64_CONF_OPTS = \ 21 --with-kernel-dir=$(LINUX_DIR) \ 22 --with-dtb=$(BOOT_WRAPPER_AARCH64_DTB) \ 23 --with-cmdline=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS) 24 25ifeq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI),y) 26BOOT_WRAPPER_AARCH64_CONF_OPTS += --enable-psci 27else 28BOOT_WRAPPER_AARCH64_CONF_OPTS += --disable-psci 29endif 30 31ifeq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_GICV3),y) 32BOOT_WRAPPER_AARCH64_CONF_OPTS += --enable-gicv3 33endif 34 35# We need to convince the configure script that the Linux kernel tree 36# exists, as well as the DTB and the kernel Image. Even though those 37# are available on the build machine, the configure script uses 38# AC_CHECK_FILE tests, which are always disabled in cross-compilation 39# situations. 40BOOT_WRAPPER_AARCH64_CONF_ENV = \ 41 $(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR))=yes \ 42 $(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR)$(BOOT_WRAPPER_AARCH64_DTB))=yes \ 43 $(call AUTOCONF_AC_CHECK_FILE_VAL,$(LINUX_DIR)/arch/arm64/boot/Image)=yes 44 45define BOOT_WRAPPER_AARCH64_INSTALL_IMAGES_CMDS 46 cp $(@D)/linux-system.axf $(BINARIES_DIR) 47endef 48 49$(eval $(autotools-package)) 50