package/ola: disable fatal warnings for host variant
[buildroot-gz.git] / boot / at91bootstrap3 / at91bootstrap3.mk
blob32732f475824fe4bab3d46c6f96eb8ba606b56fe
1 ################################################################################
3 # at91bootstrap3
5 ################################################################################
7 AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
9 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y)
10 AT91BOOTSTRAP3_SITE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL))
11 AT91BOOTSTRAP3_SITE_METHOD = git
12 else
13 AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION))
14 endif
16 AT91BOOTSTRAP3_LICENSE = Atmel License
17 AT91BOOTSTRAP3_LICENSE_FILES = main.c
19 AT91BOOTSTRAP3_INSTALL_IMAGES = YES
20 AT91BOOTSTRAP3_INSTALL_TARGET = NO
22 AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
23 $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
25 AT91BOOTSTRAP3_MAKE_OPTS = CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(BINARIES_DIR)
27 ifneq ($(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR),)
28 define AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
29 $(APPLY_PATCHES) $(@D) $(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR) \*.patch
30 endef
32 AT91BOOTSTRAP3_POST_PATCH_HOOKS += AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
33 endif
35 define AT91BOOTSTRAP3_BUILD_CMDS
36 $(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D)
37 endef
39 define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
40 cp $(@D)/binaries/*.bin $(BINARIES_DIR)
41 endef
43 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
44 AT91BOOTSTRAP3_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG))_defconfig
45 else ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
46 AT91BOOTSTRAP3_KCONFIG_FILE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE))
47 endif
49 AT91BOOTSTRAP3_KCONFIG_EDITORS = menuconfig xconfig gconfig
50 AT91BOOTSTRAP3_KCONFIG_OPTS = $(AT91BOOTSTRAP3_MAKE_OPTS)
52 # Checks to give errors that the user can understand
53 # Must be before we call to kconfig-package
54 ifeq ($(BR_BUILDING),y)
56 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
57 # We must use the user-supplied kconfig value, because
58 # AT91BOOTSTRAP3_KCONFIG_DEFCONFIG will at least contain
59 # the trailing _defconfig
60 ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG)),)
61 $(error No at91bootstrap3 defconfig name specified, check your BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG setting)
62 endif
63 endif
65 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG),y)
66 ifeq ($(AT91BOOTSTRAP3_KCONFIG_FILE),)
67 $(error No at91bootstrap3 configuration file specified, check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE setting)
68 endif
69 endif
71 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y)
72 ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL)),)
73 $(error No custom at91bootstrap3 repository URL specified. Check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL setting)
74 endif
75 ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION)),)
76 $(error No custom at91bootstrap3 repository version specified. Check your BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION setting)
77 endif
78 endif
80 endif # BR_BUILDING
82 $(eval $(kconfig-package))