Use DEFAULT_* for trivial compilation.

Also use MYPNV for easier access.
This commit is contained in:
Daniel Mierswa 2010-03-11 10:51:16 +01:00
parent db023285f2
commit b7d298c713

View file

@ -1,13 +1,15 @@
# Copyright 2008 Daniel Mierswa <impulze@impulze.org> # Copyright 2008 Daniel Mierswa <impulze@impulze.org>
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
MYPNV="${PNV/_/-}"
SUMMARY="A C library for developing embedded Linux systems." SUMMARY="A C library for developing embedded Linux systems."
DESCRIPTION="A small C library that runs on standard Linux and MMU-less (also DESCRIPTION="A small C library that runs on standard Linux and MMU-less (also
known as µClinux) systems with support for alpha, amd64, ARM, Blackfin, known as µClinux) systems with support for alpha, amd64, ARM, Blackfin,
cris, h8300, hppa, i386, i960, ia64, m68k, mips/mipsel, PowerPC, SH, SPARC, cris, h8300, hppa, i386, i960, ia64, m68k, mips/mipsel, PowerPC, SH, SPARC,
and v850 processors." and v850 processors."
HOMEPAGE="http://www.${PN}.org" HOMEPAGE="http://www.${PN}.org"
DOWNLOADS="${HOMEPAGE}/downloads/${PNV/_/-}.tar.bz2" DOWNLOADS="${HOMEPAGE}/downloads/${MYPNV}.tar.bz2"
LICENCES="" LICENCES=""
SLOT="0" SLOT="0"
@ -15,18 +17,17 @@ MYOPTIONS=""
DEPENDENCIES="" DEPENDENCIES=""
WORK="${WORKBASE}/${PNV/_/-}" WORK="${WORKBASE}/${MYPNV}"
DEFAULT_SRC_COMPILE_PARAMS=(
CC="${CC}" AR="${AR}" LD="${LD}" NM="${NM}" HOSTCC="${BUILD_CC}"
)
DEFAULT_SRC_INSTALL_PARAMS=( PREFIX="${IMAGE}/usr" ) DEFAULT_SRC_INSTALL_PARAMS=( PREFIX="${IMAGE}/usr" )
src_compile() { src_compile() {
emake defconfig emake defconfig
emake \ default
CC="${CC}" \
AR="${AR}" \
LD="${LD}" \
NM="${NM}" \
HOSTCC="${BUILD_CC}"
} }