forked from omniti-labs/omnios-build
-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3839 from hadfl/dtc_r46
add dtc (r151046)
- Loading branch information
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters