Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dtc (r151046) #3839

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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