1 ################################################################################
5 ################################################################################
7 AT91BOOTSTRAP3_VERSION = v3.7.1
8 AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION))
10 AT91BOOTSTRAP3_INSTALL_IMAGES = YES
11 AT91BOOTSTRAP3_INSTALL_TARGET = NO
13 AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
14 $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
16 AT91BOOTSTRAP3_MAKE_OPTS = CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(BINARIES_DIR)
18 ifneq ($(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR),)
19 define AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
20 $(APPLY_PATCHES) $(@D) $(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR) \*.patch
23 AT91BOOTSTRAP3_POST_PATCH_HOOKS += AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
26 define AT91BOOTSTRAP3_BUILD_CMDS
27 $(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D)
30 define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
31 cp $(@D)/binaries/*.bin $(BINARIES_DIR)
34 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
35 AT91BOOTSTRAP3_SOURCE_CONFIG = $(AT91BOOTSTRAP3_DIR)/board/*/$(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG))_defconfig
36 else ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
37 AT91BOOTSTRAP3_SOURCE_CONFIG = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE))
40 AT91BOOTSTRAP3_KCONFIG_FILE = $(AT91BOOTSTRAP3_SOURCE_CONFIG)
41 AT91BOOTSTRAP3_KCONFIG_EDITORS = menuconfig xconfig gconfig
42 AT91BOOTSTRAP3_KCONFIG_OPTS = $(AT91BOOTSTRAP3_MAKE_OPTS)
43 $(eval $(kconfig-package))
45 # Checks to give errors that the user can understand
46 ifeq ($(BR_BUILDING),y)
47 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
48 ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG)),)
49 $(error No at91bootstrap3 defconfig name specified, check your BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG setting)
53 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
54 ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE)),)
55 $(error No at91bootstrap3 configuration file specified, check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE setting)