Skip to content

Commit 4da3ba7

Browse files
committed
add dtc
1 parent 7b1815d commit 4da3ba7

File tree

7 files changed

+83
-0
lines changed

7 files changed

+83
-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+

build/entire/entire-aarch64.pkg

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ compress/xz O
2525
compress/zip O
2626
compress/zstd O
2727
developer/debug/mdb O
28+
developer/dtc O
2829
developer/dtrace O
2930
developer/linker O
3031
diagnostic/diskinfo O

doc/baseline

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

doc/baseline.aarch64

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ omnios developer/debug/ctf
3535
omnios developer/debug/mdb
3636
omnios developer/debug/mdb/module/module-fibre-channel
3737
omnios developer/driver/ftsafe
38+
omnios developer/dtc
3839
omnios developer/dtrace
3940
omnios developer/exuberant-ctags
4041
omnios developer/gcc14

doc/packages.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| developer/build/automake | 1.17 | https://ftp.gnu.org/gnu/automake/
1818
| developer/build/gnu-make | 4.4.1 | https://ftp.gnu.org/gnu/make/
1919
| developer/build/libtool | 2.5.4 | https://www.gnu.org/software/libtool/
20+
| developer/dtc | 1.7.2 | https://git.kernel.org/pub/scm/utils/dtc/dtc.git/refs/
2021
| developer/exuberant-ctags | 5.8 | https://sourceforge.net/projects/ctags/files/ctags/ http://ctags.sourceforge.net/
2122
| developer/gcc10 | 10.5 | https://ftp.gnu.org/gnu/gcc/
2223
| developer/gcc13 | 13.3 | https://ftp.gnu.org/gnu/gcc/

doc/pkglist.aarch64

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ text/gnu-sed
8888
archiver/gnu-tar
8989
compress/7zip
9090
compress/gzip
91+
developer/dtc
9192
developer/swig
9293
library/glib2
9394
library/libxslt

0 commit comments

Comments
 (0)