Skip to content

Commit

Permalink
Merge pull request #3839 from hadfl/dtc_r46
Browse files Browse the repository at this point in the history
add dtc (r151046)
  • Loading branch information
citrus-it authored Feb 8, 2025
2 parents 26e0be4 + a5297ec commit 0f5a2d6
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
61 changes: 61 additions & 0 deletions build/dtc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/usr/bin/bash
#
# {{{ CDDL HEADER
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

PROG=dtc
VER=1.7.2
PKG=developer/dtc
SUMMARY="Device Tree Compiler"
DESC="$PROG - $SUMMARY"

set_arch 64

NO_SONAME_EXPECTED=1

pre_configure() {
typeset arch=$1

# TODO: no debug info/SSP for shared library
MAKE_ARGS="
NO_YAML=1
NO_PYTHON=1
PREFIX=$PREFIX
"
MAKE_ARGS_WS="
EXTRA_CFLAGS=\"$CFLAGS ${CFLAGS[$arch]}\"
SHAREDLIB_LDFLAGS=\"-shared -Wl,-soname\"
LDFLAGS=\"-R$PREFIX/${LIBDIRS[$arch]}\"
"
MAKE_INSTALL_ARGS="
$MAKE_ARGS
LIBDIR=$PREFIX/${LIBDIRS[$arch]}/libfdt
"

# no configure
false
}

init
download_source $PROG $PROG $VER
patch_source
prep_build
build
make_package
clean_up

# Vim hints
# vim:ts=4:sw=4:et:fdm=marker
17 changes: 17 additions & 0 deletions build/dtc/local.mog
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.

# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.

license GPL license=GPLv2

# drop static lib
<transform file path=.*\.a$ -> drop>

1 change: 1 addition & 0 deletions doc/baseline
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ omnios developer/debug/mdb
omnios developer/debug/mdb/module/module-fibre-channel
omnios developer/debug/mdb/module/module-qlc
omnios developer/driver/ftsafe
omnios developer/dtc
omnios developer/dtrace
omnios developer/dtrace/toolkit
omnios developer/exuberant-ctags
Expand Down
1 change: 1 addition & 0 deletions doc/baseline.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ omnios developer/debug/ctf
omnios developer/debug/mdb
omnios developer/debug/mdb/module/module-fibre-channel
omnios developer/driver/ftsafe
omnios developer/dtc
omnios developer/dtrace
omnios developer/exuberant-ctags
omnios developer/library/lint o
Expand Down
1 change: 1 addition & 0 deletions doc/pkglist.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ text/gnu-sed
.SYSROOT
archiver/gnu-tar
compress/gzip
developer/dtc
library/glib2
library/mpc
media/xorriso
Expand Down

0 comments on commit 0f5a2d6

Please sign in to comment.