Skip to content

Commit 0f5a2d6

Browse files
authored
Merge pull request #3839 from hadfl/dtc_r46
add dtc (r151046)
2 parents 26e0be4 + a5297ec commit 0f5a2d6

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed

build/dtc/build.sh

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/usr/bin/bash
2+
#
3+
# {{{ CDDL HEADER
4+
#
5+
# This file and its contents are supplied under the terms of the
6+
# Common Development and Distribution License ("CDDL"), version 1.0.
7+
# You may only use this file in accordance with the terms of version
8+
# 1.0 of the CDDL.
9+
#
10+
# A full copy of the text of the CDDL should have accompanied this
11+
# source. A copy of the CDDL is also available via the Internet at
12+
# http://www.illumos.org/license/CDDL.
13+
# }}}
14+
15+
# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
16+
17+
. ../../lib/build.sh
18+
19+
PROG=dtc
20+
VER=1.7.2
21+
PKG=developer/dtc
22+
SUMMARY="Device Tree Compiler"
23+
DESC="$PROG - $SUMMARY"
24+
25+
set_arch 64
26+
27+
NO_SONAME_EXPECTED=1
28+
29+
pre_configure() {
30+
typeset arch=$1
31+
32+
# TODO: no debug info/SSP for shared library
33+
MAKE_ARGS="
34+
NO_YAML=1
35+
NO_PYTHON=1
36+
PREFIX=$PREFIX
37+
"
38+
MAKE_ARGS_WS="
39+
EXTRA_CFLAGS=\"$CFLAGS ${CFLAGS[$arch]}\"
40+
SHAREDLIB_LDFLAGS=\"-shared -Wl,-soname\"
41+
LDFLAGS=\"-R$PREFIX/${LIBDIRS[$arch]}\"
42+
"
43+
MAKE_INSTALL_ARGS="
44+
$MAKE_ARGS
45+
LIBDIR=$PREFIX/${LIBDIRS[$arch]}/libfdt
46+
"
47+
48+
# no configure
49+
false
50+
}
51+
52+
init
53+
download_source $PROG $PROG $VER
54+
patch_source
55+
prep_build
56+
build
57+
make_package
58+
clean_up
59+
60+
# Vim hints
61+
# vim:ts=4:sw=4:et:fdm=marker

build/dtc/local.mog

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
11+
# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
12+
13+
license GPL license=GPLv2
14+
15+
# drop static lib
16+
<transform file path=.*\.a$ -> drop>
17+

doc/baseline

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ omnios developer/debug/mdb
4040
omnios developer/debug/mdb/module/module-fibre-channel
4141
omnios developer/debug/mdb/module/module-qlc
4242
omnios developer/driver/ftsafe
43+
omnios developer/dtc
4344
omnios developer/dtrace
4445
omnios developer/dtrace/toolkit
4546
omnios developer/exuberant-ctags

doc/baseline.aarch64

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ omnios developer/debug/ctf
2929
omnios developer/debug/mdb
3030
omnios developer/debug/mdb/module/module-fibre-channel
3131
omnios developer/driver/ftsafe
32+
omnios developer/dtc
3233
omnios developer/dtrace
3334
omnios developer/exuberant-ctags
3435
omnios developer/library/lint o

doc/pkglist.aarch64

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ text/gnu-sed
7676
.SYSROOT
7777
archiver/gnu-tar
7878
compress/gzip
79+
developer/dtc
7980
library/glib2
8081
library/mpc
8182
media/xorriso

0 commit comments

Comments
 (0)