|
|
SRC_URI="pcmcia? ( mirror://sourceforge/pcmcia-cs/${PCMCIA_BASE_VERSION}.tar.gz \ | SRC_URI="pcmcia? ( mirror://sourceforge/pcmcia-cs/${PCMCIA_BASE_VERSION}.tar.gz \ |
http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz | http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz |
http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz | http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz |
|
http://dev.gentoo.org/~latexer/files/patches/${PCMCIA_BASE_VERSION}-koutput.diff.gz |
http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_6} \ | http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_6} \ |
http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_7} )" | http://dev.gentoo.org/~latexer/files/patches/${PATCH_TO_3_2_7} )" |
| |
|
|
| |
pcmcia_src_unpack() | pcmcia_src_unpack() |
{ | { |
|
if [ -z "${KV_OUTPUT}" ] |
|
then |
|
eerror "pcmcia_src_unpack() must be called after kernel-mod_src_unpack()" |
|
error "so the build environment is sane." |
|
die "pcmcia_src_unpack() called in invalid context" |
|
fi |
|
|
cd ${WORKDIR} | cd ${WORKDIR} |
| |
if [ -n "`use pcmcia`" ]; then | if [ -n "`use pcmcia`" ]; then |
if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null |
if egrep '^CONFIG_PCMCIA=[ym]' ${KV_OUTPUT}/.config >&/dev/null |
then | then |
# Sadly, we still need to download these sources in SRC_URI | # Sadly, we still need to download these sources in SRC_URI |
# til portage can handle more dynamic SRC_URIs | # til portage can handle more dynamic SRC_URIs |
|
|
unpack ${PCMCIA_BASE_VERSION}.tar.gz | unpack ${PCMCIA_BASE_VERSION}.tar.gz |
cd ${PCMCIA_SOURCE_DIR} | cd ${PCMCIA_SOURCE_DIR} |
epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz | epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-module-init-tools.diff.gz |
|
epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-koutput.diff.gz |
epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz | epatch ${DISTDIR}/${PCMCIA_BASE_VERSION}-SMP-fix.diff.gz |
PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing | PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing |
if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then | if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then |
|
|
pcmcia_configure() | pcmcia_configure() |
{ | { |
if [ -n "`use pcmcia`" ]; then | if [ -n "`use pcmcia`" ]; then |
if ! egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null |
if ! egrep '^CONFIG_PCMCIA=[ym]' ${KV_OUTPUT}/.config >&/dev/null |
then | then |
cd ${PCMCIA_SOURCE_DIR} | cd ${PCMCIA_SOURCE_DIR} |
local myarch | local myarch |
|
|
--target=${D} \ | --target=${D} \ |
--srctree \ | --srctree \ |
--kernel=/usr/src/linux \ | --kernel=/usr/src/linux \ |
|
--koutput=${KV_OUTPUT} \ |
--kflags="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer" \ | --kflags="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer" \ |
--arch="${myarch}" \ | --arch="${myarch}" \ |
--uflags="${CFLAGS}" || die "failed configuring pcmcia-cs" | --uflags="${CFLAGS}" || die "failed configuring pcmcia-cs" |