mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
sys-apps/dtc-1.3.0: backport from Gentoo's tree
BUG=none TEST=emerge dtc && ./build_packages && ./build_image Change-Id: Ib3cca7647a8f3975730362050b3b8897c10d91a8 Reviewed-on: http://gerrit.chromium.org/gerrit/2718 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Diego Elio Pettenò <flameeyes@chromium.org>
This commit is contained in:
parent
57aee68691
commit
f6a3847ebd
46
sdk_container/src/third_party/portage-stable/sys-apps/dtc/dtc-1.3.0.ebuild
vendored
Normal file
46
sdk_container/src/third_party/portage-stable/sys-apps/dtc/dtc-1.3.0.ebuild
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dtc/dtc-1.3.0.ebuild,v 1.1 2011/06/15 21:19:11 flameeyes Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${PN}-v${PV}"
|
||||
|
||||
DESCRIPTION="Open Firmware device-trees compiler"
|
||||
HOMEPAGE="http://www.t2-project.org/packages/dtc.html"
|
||||
SRC_URI="http://www.jdl.com/software/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s:CFLAGS =:CFLAGS +=:" \
|
||||
-e "s:CPPFLAGS =:CPPFLAGS +=:" \
|
||||
-e "s:-Werror::" \
|
||||
-e "s:-g -Os::" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC
|
||||
emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \
|
||||
install
|
||||
dodoc Documentation/manual.txt
|
||||
}
|
Loading…
Reference in New Issue
Block a user