• 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/barebox/barebox.mk
Yegor YefremovYegor Yefremov committed f80735ce39106 May 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
$$(error No Barebox config. Check your BR2_TARGET_$(1)_BOARD_DEFCONFIG or BR2_TARGET_$(1)_CUSTOM_CONFIG_FILE settings)
 
1
################################################################################
2
#
3
# barebox
4
#
5
################################################################################
6
​
7
################################################################################
8
# inner-barebox-package -- generates the KConfig logic and make targets needed
9
# to support a barebox package. All barebox packages are built from the same
10
# source (origin, version and patches). The remainder of the package
11
# configuration is unique to each barebox package.
12
#
13
#  argument 1 is the uppercase package name (used for variable name-space)
14
################################################################################
15
​
16
define inner-barebox-package
17
​
18
$(1)_VERSION = $$(call qstrip,$$(BR2_TARGET_BAREBOX_VERSION))
19
​
20
ifeq ($$($(1)_VERSION),custom)
21
# Handle custom Barebox tarballs as specified by the configuration
22
$(1)_TARBALL = $$(call qstrip,$$(BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION))
23
$(1)_SITE = $$(patsubst %/,%,$$(dir $$($(1)_TARBALL)))
24
$(1)_SOURCE = $$(notdir $$($(1)_TARBALL))
25
BR_NO_CHECK_HASH_FOR += $$($(1)_SOURCE)
26
else ifeq ($$(BR2_TARGET_BAREBOX_CUSTOM_GIT),y)
27
$(1)_SITE = $$(call qstrip,$$(BR2_TARGET_BAREBOX_CUSTOM_GIT_REPO_URL))
28
$(1)_SITE_METHOD = git
29
else
30
# Handle stable official Barebox versions
31
$(1)_SOURCE = barebox-$$($(1)_VERSION).tar.bz2
32
$(1)_SITE = http://www.barebox.org/download
33
ifeq ($$(BR2_TARGET_BAREBOX_CUSTOM_VERSION),y)
34
BR_NO_CHECK_HASH_FOR += $$($(1)_SOURCE)
35
endif
36
endif
37
​
38
$(1)_DEPENDENCIES = host-lzop
39
$(1)_LICENSE = GPLv2 with exceptions
40
$(1)_LICENSE_FILES = COPYING
41
​
42
$(1)_CUSTOM_EMBEDDED_ENV_PATH = $$(call qstrip,$$(BR2_TARGET_$(1)_CUSTOM_EMBEDDED_ENV_PATH))
43
​
44
ifneq ($$(call qstrip,$$(BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR)),)
45
define $(1)_APPLY_CUSTOM_PATCHES
46
    $$(APPLY_PATCHES) $$(@D) \
47
        $$(BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR) \*.patch
48
endef
49
​
50
$(1)_POST_PATCH_HOOKS += $(1)_APPLY_CUSTOM_PATCHES
51
endif
52
​
53
$(1)_INSTALL_IMAGES = YES
54
ifneq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
55
$(1)_INSTALL_TARGET = NO
56
endif
57
​
58
ifeq ($$(KERNEL_ARCH),i386)
59
$(1)_ARCH = x86
60
else ifeq ($$(KERNEL_ARCH),x86_64)
61
$(1)_ARCH = x86
62
else ifeq ($$(KERNEL_ARCH),powerpc)
63
$(1)_ARCH = ppc
  • 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.