• 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/package/dtc/dtc.mk
Rahul BedarkarRahul Bedarkar committed 96e9480fbc730 Mar 2017
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# dtc
4
#
5
################################################################################
6
​
7
DTC_VERSION = 1.4.1
8
DTC_SOURCE = dtc-$(DTC_VERSION).tar.xz
9
DTC_SITE = https://www.kernel.org/pub/software/utils/dtc
10
DTC_LICENSE = GPL-2.0+ or BSD-2-Clause (library)
11
DTC_LICENSE_FILES = README.license GPL
12
DTC_INSTALL_STAGING = YES
13
DTC_DEPENDENCIES = host-bison host-flex
14
HOST_DTC_DEPENDENCIES = host-bison host-flex
15
​
16
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
17
    rm -f $(TARGET_DIR)/usr/bin/dtdiff
18
endef
19
​
20
ifeq ($(BR2_PACKAGE_DTC_PROGRAMS),y)
21
​
22
DTC_LICENSE := $(DTC_LICENSE), GPL-2.0+ (programs)
23
DTC_INSTALL_GOAL = install
24
ifeq ($(BR2_PACKAGE_BASH),)
25
DTC_POST_INSTALL_TARGET_HOOKS += DTC_POST_INSTALL_TARGET_RM_DTDIFF
26
endif
27
​
28
else # $(BR2_PACKAGE_DTC_PROGRAMS) != y
29
​
30
DTC_INSTALL_GOAL = install-lib
31
​
32
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
33
​
34
define DTC_BUILD_CMDS
35
    $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr
36
endef
37
​
38
# For staging, only the library is needed
39
define DTC_INSTALL_STAGING_CMDS
40
    $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install-lib \
41
        install-includes
42
endef
43
​
44
define DTC_INSTALL_TARGET_CMDS
45
    $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL)
46
endef
47
​
48
# host build
49
define HOST_DTC_BUILD_CMDS
50
    $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr
51
endef
52
​
53
define HOST_DTC_INSTALL_CMDS
54
    $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install-bin
55
endef
56
​
57
$(eval $(generic-package))
58
$(eval $(host-generic-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.