• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/boot/at91bootstrap3/at91bootstrap3.mk
Yann E. MORINYann E. MORIN committed d831f24964423 Dec 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# at91bootstrap3
4
#
5
################################################################################
6
​
7
AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
8
​
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
15
​
16
AT91BOOTSTRAP3_LICENSE = Atmel License
17
AT91BOOTSTRAP3_LICENSE_FILES = main.c
18
​
19
AT91BOOTSTRAP3_INSTALL_IMAGES = YES
20
AT91BOOTSTRAP3_INSTALL_TARGET = NO
21
​
22
AT91BOOTSTRAP3_CUSTOM_PATCH_DIR = \
23
    $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR))
24
​
25
AT91BOOTSTRAP3_MAKE_OPTS = CROSS_COMPILE=$(TARGET_CROSS) DESTDIR=$(BINARIES_DIR)
26
​
27
ifneq ($(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR),)
28
define AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
29
    $(APPLY_PATCHES) $(@D) $(AT91BOOTSTRAP3_CUSTOM_PATCH_DIR) \*.patch
30
endef
31
​
32
AT91BOOTSTRAP3_POST_PATCH_HOOKS += AT91BOOTSTRAP3_APPLY_CUSTOM_PATCHES
33
endif
34
​
35
define AT91BOOTSTRAP3_BUILD_CMDS
36
    $(MAKE) $(AT91BOOTSTRAP3_MAKE_OPTS) -C $(@D)
37
endef
38
​
39
define AT91BOOTSTRAP3_INSTALL_IMAGES_CMDS
40
    cp $(@D)/binaries/*.bin $(BINARIES_DIR)
41
endef
42
​
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
48
​
49
AT91BOOTSTRAP3_KCONFIG_EDITORS = menuconfig xconfig gconfig
50
AT91BOOTSTRAP3_KCONFIG_OPTS = $(AT91BOOTSTRAP3_MAKE_OPTS)
51
​
52
# Checks to give errors that the user can understand
53
# Must be before we call to kconfig-package
54
ifeq ($(BR_BUILDING),y)
55
​
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
64
​
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
70
​
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
79
​
80
endif # BR_BUILDING
81
​
82
$(eval $(kconfig-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.