board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / boot / at91bootstrap / at91bootstrap.mk
blobf6550588d36dd8e8ac408f2f951f9ad905a85b1f
1 ################################################################################
3 # at91bootstrap
5 ################################################################################
7 AT91BOOTSTRAP_VERSION = 1.16
8 AT91BOOTSTRAP_SITE = ftp://www.at91.com/pub/at91bootstrap
9 AT91BOOTSTRAP_SOURCE = AT91Bootstrap$(AT91BOOTSTRAP_VERSION).zip
11 AT91BOOTSTRAP_BOARD = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_BOARD))
12 AT91BOOTSTRAP_MEMORY = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_MEMORY))
13 AT91BOOTSTRAP_MAKE_SUBDIR = board/$(AT91BOOTSTRAP_BOARD)/$(AT91BOOTSTRAP_MEMORY)
14 AT91BOOTSTRAP_BINARY = $(AT91BOOTSTRAP_MAKE_SUBDIR)/$(AT91BOOTSTRAP_MEMORY)_$(AT91BOOTSTRAP_BOARD).bin
16 AT91BOOTSTRAP_INSTALL_IMAGES = YES
17 AT91BOOTSTRAP_INSTALL_TARGET = NO
19 define AT91BOOTSTRAP_EXTRACT_CMDS
20 $(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(AT91BOOTSTRAP_SOURCE)
21 mv $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)/* $(@D)
22 rmdir $(BUILD_DIR)/Bootstrap-v$(AT91BOOTSTRAP_VERSION)
23 endef
25 ifneq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR)),)
26 define AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
27 $(APPLY_PATCHES) $(@D) $(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR) \*.patch
28 endef
30 AT91BOOTSTRAP_POST_PATCH_HOOKS += AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES
31 endif
33 define AT91BOOTSTRAP_BUILD_CMDS
34 $(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C $(@D)/$(AT91BOOTSTRAP_MAKE_SUBDIR)
35 endef
37 define AT91BOOTSTRAP_INSTALL_IMAGES_CMDS
38 cp $(@D)/$(AT91BOOTSTRAP_BINARY) $(BINARIES_DIR)
39 endef
41 $(eval $(generic-package))
43 ifeq ($(BR2_TARGET_AT91BOOTSTRAP)$(BR_BUILDING),yy)
44 ifeq ($(AT91BOOTSTRAP_BOARD),)
45 $(error No AT91Bootstrap board name set. Check your BR2_TARGET_AT91BOOTSTRAP_BOARD setting)
46 endif
47 endif