1 ################################################################################
5 ################################################################################
7 BOOT_WRAPPER_AARCH64_VERSION
= 4266507a84f8c06452109d38e0350d4759740694
8 BOOT_WRAPPER_AARCH64_SITE
= git
://git.kernel.org
/pub
/scm
/linux
/kernel
/git
/cmarinas
/boot-wrapper-aarch64.git
9 BOOT_WRAPPER_AARCH64_LICENSE
= BSD3c
10 BOOT_WRAPPER_AARCH64_LICENSE_FILES
= LICENSE.txt
11 BOOT_WRAPPER_AARCH64_DEPENDENCIES
= linux
12 BOOT_WRAPPER_AARCH64_INSTALL_IMAGES
= YES
14 # The Git repository does not have the generated configure script and
16 BOOT_WRAPPER_AARCH64_AUTORECONF
= YES
18 BOOT_WRAPPER_AARCH64_DTB
= /arch
/arm64
/boot
/dts
/$(basename $(call qstrip
,$(BR2_TARGET_BOOT_WRAPPER_AARCH64_DTS
))).dtb
20 # Fixup the path to the DTB in configure.ac. In the future, this
21 # should hopefully be made more configurable by the
22 # boot-wrapper-aarch64 developers.
23 define BOOT_WRAPPER_AARCH64_FIX_DTB_NAME
24 $(SED
) 's%^KERN_DTB=.*%KERN_DTB=$(BOOT_WRAPPER_AARCH64_DTB)%' $(@D
)/configure.ac
27 BOOT_WRAPPER_AARCH64_PRE_PATCH_HOOKS
+= BOOT_WRAPPER_AARCH64_FIX_DTB_NAME
29 BOOT_WRAPPER_AARCH64_CONF_OPTS
= \
30 --with-kernel-dir
=$(LINUX_DIR
) \
31 --with-cmdline
=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS
)
33 ifeq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI
),y
)
34 BOOT_WRAPPER_AARCH64_CONF_OPTS
+= --enable-psci
36 BOOT_WRAPPER_AARCH64_CONF_OPTS
+= --disable-psci
39 # We need to convince the configure script that the Linux kernel tree
40 # exists, as well as the DTB and the kernel Image. Even though those
41 # are available on the build machine, the configure script uses
42 # AC_CHECK_FILE tests, which are always disabled in cross-compilation
44 BOOT_WRAPPER_AARCH64_CONF_ENV
= \
45 $(call AUTOCONF_AC_CHECK_FILE_VAL
,$(LINUX_DIR
))=yes \
46 $(call AUTOCONF_AC_CHECK_FILE_VAL
,$(LINUX_DIR
)$(BOOT_WRAPPER_AARCH64_DTB
))=yes \
47 $(call AUTOCONF_AC_CHECK_FILE_VAL
,$(LINUX_DIR
)/arch
/arm64
/boot
/Image
)=yes
49 define BOOT_WRAPPER_AARCH64_INSTALL_IMAGES_CMDS
50 cp
$(@D
)/linux-system.axf
$(BINARIES_DIR
)
53 $(eval
$(autotools-package
))