1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# -*-makefile-*-
#
# Copyright (C) 2022 Ladislav Michl <ladis@linux-mips.org>
# Copyright (C) 2023 Christian Melki <christian.melki@t2data.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_DTC) += dtc
#
# Paths and names
#
DTC_VERSION := 1.7.0
DTC_MD5 := f8b4469ad89f4b882091895ec60dde6b
DTC := dtc-$(DTC_VERSION)
DTC_SUFFIX := tar.gz
DTC_URL := https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$(DTC).$(DTC_SUFFIX)
DTC_SOURCE := $(SRCDIR)/$(DTC).$(DTC_SUFFIX)
DTC_DIR := $(BUILDDIR)/$(DTC)
DTC_LICENSE := GPL-2.0-or-later OR BSD-2-Clause
DTC_LICENSE_FILES := \
file://README.license;md5=a1eb22e37f09df5b5511b8a278992d0e \
file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
DTC_CONF_TOOL := NO
DTC_MAKE_ENV := $(CROSS_ENV)
DTC_MAKE_OPT := \
PREFIX=/usr \
NO_PYTHON=1 \
NO_VALGRIND=1 \
NO_YAML=1
DTC_INSTALL_OPT := \
$(DTC_MAKE_OPT) \
install-bin \
install-includes \
install-lib
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
DTC_BIN-y :=
DTC_BIN-$(PTXCONF_DTC_DTC) += dtc
DTC_BIN-$(PTXCONF_DTC_DTDIFF) += dtdiff
DTC_BIN-$(PTXCONF_DTC_FDTDUMP) += fdtdump
DTC_BIN-$(PTXCONF_DTC_FDTGET) += fdtget
DTC_BIN-$(PTXCONF_DTC_FDTOVERLAY) += fdtoverlay
DTC_BIN-$(PTXCONF_DTC_FDTPUT) += fdtput
$(STATEDIR)/dtc.targetinstall:
@$(call targetinfo)
@$(call install_init, dtc)
@$(call install_fixup, dtc,PRIORITY,optional)
@$(call install_fixup, dtc,SECTION,base)
@$(call install_fixup, dtc,AUTHOR,"Ladislav Michl <ladis@linux-mips.org>")
@$(call install_fixup, dtc,DESCRIPTION,missing)
@$(call install_lib, dtc, 0, 0, 0644, libfdt-$(DTC_VERSION))
@$(foreach tool, $(DTC_BIN-y), \
$(call install_copy, dtc, 0, 0, 0755, -, \
/usr/bin/$(tool))$(ptx/nl))
@$(call install_finish, dtc)
@$(call touch)
# vim: syntax=make
|