The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / boot / at91bootstrap3 / at91bootstrap3.mk
1 ################################################################################
2 #
3 # at91bootstrap3
4 #
5 ################################################################################
6
7 AT91BOOTSTRAP3_VERSION = v3.7.1
8 AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION))
9
10 AT91BOOTSTRAP3_INSTALL_IMAGES = YES
11 AT91BOOTSTRAP3_INSTALL_TARGET = NO
12
13 AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
14         $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
15
16 AT91BOOTSTRAP3_MAKE_OPTS = CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(BINARIES_DIR)
17
18 ifneq ($(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR),)
19 define AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
20         $(APPLY_PATCHES) $(@D) $(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR) \*.patch
21 endef
22
23 AT91BOOTSTRAP3_POST_PATCH_HOOKS += AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
24 endif
25
26 define AT91BOOTSTRAP3_BUILD_CMDS
27         $(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D)
28 endef
29
30 define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
31         cp $(@D)/binaries/*.bin $(BINARIES_DIR)
32 endef
33
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))
38 endif
39
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))
44
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)
50 endif
51 endif
52
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)
56 endif
57 endif
58 endif