• 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
Jeremy KerrJeremy Kerr committed 24b651f0d8912 Mar 2014
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# dtc
4
#
5
################################################################################
6
​
7
DTC_VERSION         = v1.4.0
8
DTC_SITE            = git://git.jdl.com/software/dtc.git
9
DTC_LICENSE         = GPLv2+/BSD-2c
10
DTC_LICENSE_FILES   = README.license GPL
11
DTC_INSTALL_STAGING = YES
12
DTC_DEPENDENCIES    = host-bison host-flex
13
​
14
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
15
    rm -f $(TARGET_DIR)/usr/bin/dtdiff
16
endef
17
​
18
ifeq ($(BR2_PACKAGE_DTC_PROGRAMS),y)
19
​
20
DTC_LICENSE        += (for the library), GPLv2+ (for the executables)
21
# Use default goal to build everything
22
DTC_BUILD_GOAL      =
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_BUILD_GOAL      = libfdt
31
# libfdt_install is our own install rule added by our patch
32
DTC_INSTALL_GOAL    = libfdt_install
33
​
34
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
35
​
36
define DTC_BUILD_CMDS
37
    $(TARGET_CONFIGURE_OPTS)    \
38
    CFLAGS="$(TARGET_CFLAGS)"   \
39
    $(MAKE) -C $(@D) PREFIX=/usr $(DTC_BUILD_GOAL)
40
endef
41
​
42
# For staging, only the library is needed
43
define DTC_INSTALL_STAGING_CMDS
44
    $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr libfdt_install
45
endef
46
​
47
define DTC_INSTALL_TARGET_CMDS
48
    $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL)
49
endef
50
​
51
$(eval $(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.