rendered paste body#!/bin/sh -e
export localstatedir="/var"
export prefix="/usr"
export STRIP="arm-angstrom-linux-gnueabi-strip"
export STAGING_SIPDIR="/oe/build/tmp/staging/i686-linux/usr/share/sip"
export BUILD_CC="gcc"
export PSTAGING_ACTIVE="1"
export GTK_RC_FILES="/etc/gtk/gtkrc:/home/andrea/.gtkrc-1.2-gnome2"
export libexecdir="/usr/libexec"
export datadir="/usr/share"
export BUILD_CXX="g++"
export LD="arm-angstrom-linux-gnueabi-ld"
export bindir="/usr/bin"
export TARGET_CXXFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive"
export includedir="/usr/include"
export BUILD_LDFLAGS="-L/oe/build/tmp/staging/i686-linux/usr/lib -Wl,-rpath-link,/oe/build/tmp/staging/i686-linux/usr/lib -Wl,-rpath,/oe/build/tmp/staging/i686-linux/usr/lib -Wl,-O1"
export BUILD_LD="ld"
export SDK_CFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include -isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
export oldincludedir="/usr/include"
export LANG="C"
export BUILD_CCLD="gcc"
export USER="andrea"
export XDG_DATA_DIRS="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share"
export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-d8jAHkJYKc,guid=8f127b5ba7d11aacbb4feca24aac9f55"
export XAUTHORITY="/home/andrea/.Xauthority"
export QMAKE_MKSPEC_PATH="/oe/build/tmp/staging/i686-linux/usr/share/qmake"
export palmtopdir="/usr/lib/opie"
export SDK_CPPFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include -isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include"
export CC="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"
export RANLIB="arm-angstrom-linux-gnueabi-ranlib"
export GNOME_KEYRING_SOCKET="/tmp/keyring-dja7hj/socket"
export CPPFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include"
export base_sbindir="/sbin"
export CXX="arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"
export BUILD_RANLIB="ranlib"
unset MACHINE
export COLORTERM="gnome-terminal"
export MANIFEST="/oe/org.openembedded.dev/recipes/udev/udev-141/c7x0/./manifest"
export mandir="/usr/share/man"
export OBJCOPY="arm-angstrom-linux-gnueabi-objcopy"
export servicedir="/srv"
export SDK_LDFLAGS="-L/oe/build/tmp/staging/i686-linux/usr/lib -Wl,-rpath-link,/oe/build/tmp/staging/i686-linux/usr/lib -Wl,-O1"
export PKG_CONFIG_DIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig"
export BB_ENV_EXTRAWHITE="MACHINE DISTRO ANGSTROM_MODE ANGSTROMLIBC"
export sysconfdir="/etc"
export CCLD="arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"
export base_bindir="/bin"
export sbindir="/sbin"
export CFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
export TARGET_LDFLAGS="-L/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export OPIEDIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi"
export BUILD_F77="g77"
export PWD="/oe/build"
export _="/oe/bitbake/bin/bitbake"
export AS="arm-angstrom-linux-gnueabi-as"
export PATCH_GET="0"
export CXXFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive -fvisibility-inlines-hidden"
export DISPLAY=":0.0"
export NM="arm-angstrom-linux-gnueabi-nm"
export F77="arm-angstrom-linux-gnueabi-g77 -march=armv5te -mtune=xscale -mthumb-interwork -mno-thumb"
export SSH_AUTH_SOCK="/tmp/keyring-dja7hj/ssh"
export QTDIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/qt2"
export LDFLAGS="-L/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu"
export MAKE="make"
unset TARGET_ARCH
export SHELLCMDS="bash --rcfile $TERMRCFILE"
export QPEDIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi"
export BBPATH="/oe/build:/oe/org.openembedded.dev:/oe/build:/oe/org.openembedded.dev"
export BUILD_CPP="cpp"
export SDK_CXXFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include -isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3 -fpermissive"
export BUILD_CFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include -O2 -g"
export GPG_AGENT_INFO="/tmp/seahorse-32FeTA/S.gpg-agent:5101:1"
export docdir="/usr/share/doc"
export infodir="/usr/share/info"
export TERM="xterm"
export PKG_CONFIG_SYSROOT_DIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi"
export PKG_CONFIG_PATH="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig:/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/pkgconfig"
export AR="arm-angstrom-linux-gnueabi-ar"
export BUILD_CPPFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include"
export CPP="arm-angstrom-linux-gnueabi-gcc -E"
export CONFIG_SITE="/oe/org.openembedded.dev/site/endian-little /oe/org.openembedded.dev/site/common-linux /oe/org.openembedded.dev/site/common-glibc /oe/org.openembedded.dev/site/arm-common /oe/org.openembedded.dev/site/arm-linux /oe/org.openembedded.dev/site/common /oe/org.openembedded.dev/site/common /oe/org.openembedded.dev/site/endian-little /oe/org.openembedded.dev/site/common-linux /oe/org.openembedded.dev/site/common-glibc /oe/org.openembedded.dev/site/arm-common /oe/org.openembedded.dev/site/arm-linux /oe/org.openembedded.dev/site/common /oe/org.openembedded.dev/site/common"
export BUILD_CXXFLAGS="-isystem/oe/build/tmp/staging/i686-linux/usr/include -O2 -g -fpermissive"
export SESSION_MANAGER="local/mizar:@/tmp/.ICE-unix/5011,unix/mizar:/tmp/.ICE-unix/5011"
export HOME="/home/andrea"
export USERNAME="andrea"
export TARGET_CPPFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include"
export DESKTOP_SESSION="gnome"
export base_libdir="/lib"
export STAGING_IDLDIR="/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/idl"
export LOGNAME="andrea"
export PATH="/oe/build/tmp/staging/i686-linux/usr/bin/c7x0-angstrom-linux-gnueabi:/oe/build/tmp/staging/i686-linux/usr/bin/armv5te-angstrom-linux-gnueabi:/oe/build/tmp/staging/i686-linux/usr/sbin:/oe/build/tmp/staging/i686-linux/usr/bin:/oe/build/tmp/cross/armv5te/bin:/oe/build/tmp/staging/i686-linux/sbin:/oe/build/tmp/staging/i686-linux/bin:/oe/bitbake/bin:/usr/lib/ccache/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.2:/usr/games/bin"
export TARGET_CFLAGS="-isystem/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
export BUILD_AR="ar"
export sharedstatedir="/usr/com"
export OBJDUMP="arm-angstrom-linux-gnueabi-objdump"
unset DISTRO
export libdir="/usr/lib"
export SHELL="/bin/bash"
export palmqtdir="/usr/lib/opie"
export BUILD_STRIP="strip"
do_devshell() {
devshell_do_devshell
}
do_fetchall() {
base_do_fetchall
}
do_recipe_sanity_all() {
:
}
base_do_buildall() {
:
}
autotools_stage_do_configure() {
autotools_do_configure
}
staging_package_libtoolhack() {
# Deal with libtool not supporting sysroots and add our new
# staging location
for i in `find /oe/build/tmp/staging -name "*.la" -type f` ; do \
sed -i -e s:FIXMESTAGINGDIR:/oe/build/tmp/staging:g $i
done
}
updatercd_postrm() {
if test "x$D" != "x"; then
OPT="-r $D"
else
OPT=""
fi
update-rc.d $OPT udev remove
}
base_do_configure() {
:
}
package_generate_ipkg_conf() {
mkdir -p /oe/build/tmp/staging/i686-linux/etc/
echo "src oe file:/oe/build/tmp/deploy/glibc/ipk" > /oe/build/tmp/staging/i686-linux/etc/opkg.conf
echo "src oe file:/oe/build/tmp/deploy/glibc/ipk" > /oe/build/tmp/staging/i686-linux/etc/opkg-sdk.conf
echo "src oe file:/oe/build/tmp/deploy/glibc/ipk" > /oe/build/tmp/staging/i686-linux/etc/opkg-canadian-sdk.conf
ipkgarchs="all any noarch arm armv4 armv4t armv5te c7x0"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> /oe/build/tmp/staging/i686-linux/etc/opkg.conf
echo "arch i686-$arch-sdk $priority" >> /oe/build/tmp/staging/i686-linux/etc/opkg-sdk.conf
echo "arch i686-linux-sdk-$arch $priority" >> /oe/build/tmp/staging/i686-linux/etc/opkg-canadian-sdk.conf
priority=$(expr $priority + 5)
if [ -e /oe/build/tmp/deploy/glibc/ipk/$arch/Packages ] ; then
echo "src oe-$arch file:/oe/build/tmp/deploy/glibc/ipk/$arch" >> /oe/build/tmp/staging/i686-linux/etc/opkg.conf
fi
if [ -e /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/Packages ] ; then
echo "src oe-i686-$arch-sdk file:/oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk" >> /oe/build/tmp/staging/i686-linux/etc/opkg-sdk.conf
fi
if [ -e /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/Packages ] ; then
echo "src oe-i686-linux-sdk-$arch file:/oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch" >> /oe/build/tmp/staging/i686-linux/etc/opkg-canadian-sdk.conf
fi
done
}
autotools_do_configure() {
case udev in
autoconf*)
;;
automake*)
;;
*)
# WARNING: gross hack follows:
# An autotools built package generally needs these scripts, however only
# automake or libtoolize actually install the current versions of them.
# This is a problem in builds that do not use libtool or automake, in the case
# where we -need- the latest version of these scripts. e.g. running a build
# for a package whose autotools are old, on an x86_64 machine, which the old
# config.sub does not support. Work around this by installing them manually
# regardless.
( for ac in `find /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141 -name configure.in -o -name configure.ac`; do
rm -f `dirname $ac`/configure
done )
if [ -e /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/configure.in -o -e /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/configure.ac ]; then
olddir=`pwd`
cd /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141
if [ x"default" = xdefault ]; then
acpaths=
for i in `find /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141 -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
acpaths="$acpaths -I $i"
done
else
acpaths="default"
fi
AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
automake --version
echo "AUTOV is $AUTOV"
install -d /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/aclocal
install -d /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/aclocal-$AUTOV
acpaths="$acpaths -I/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/aclocal-$AUTOV -I /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/aclocal"
# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
# like it was auto-generated. Work around this by blowing it away
# by hand, unless the package specifically asked not to run aclocal.
if ! echo --exclude=autopoint | grep -q "aclocal"; then
rm -f aclocal.m4
fi
if [ -e configure.in ]; then
CONFIGURE_AC=configure.in
else
CONFIGURE_AC=configure.ac
fi
if grep "^AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
: do nothing -- we still have an old unmodified configure.ac
else
oenote Executing glib-gettextize --force --copy
echo "no" | glib-gettextize --force --copy
fi
fi
if grep "^[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
oenote Executing intltoolize --copy --force --automake
intltoolize --copy --force --automake
fi
oenote Executing autoreconf --verbose --install --force --exclude=autopoint $acpaths
mkdir -p m4
autoreconf -Wcross --verbose --install --force --exclude=autopoint $acpaths || oefatal "autoreconf execution failed."
cd $olddir
fi
;;
esac
if [ -e /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/configure ]; then
oe_runconf $@
else
oenote "nothing to configure"
fi
}
base_do_stage() {
:
}
do_package_update_index_ipk() {
set -x
ipkgarchs="all any noarch arm armv4 armv4t armv5te c7x0"
if [ ! -z "${DEPLOY_KEEP_PACKAGES}" ]; then
return
fi
mkdir -p /oe/build/tmp/deploy/glibc/ipk
touch /oe/build/tmp/deploy/glibc/ipk/Packages
ipkg-make-index -r /oe/build/tmp/deploy/glibc/ipk/Packages -p /oe/build/tmp/deploy/glibc/ipk/Packages -l /oe/build/tmp/deploy/glibc/ipk/Packages.filelist -m /oe/build/tmp/deploy/glibc/ipk
for arch in $ipkgarchs; do
if [ -e /oe/build/tmp/deploy/glibc/ipk/$arch/ ] ; then
touch /oe/build/tmp/deploy/glibc/ipk/$arch/Packages
ipkg-make-index -r /oe/build/tmp/deploy/glibc/ipk/$arch/Packages -p /oe/build/tmp/deploy/glibc/ipk/$arch/Packages -l /oe/build/tmp/deploy/glibc/ipk/$arch/Packages.filelist -m /oe/build/tmp/deploy/glibc/ipk/$arch/
fi
if [ -e /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/ ] ; then
touch /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/Packages
ipkg-make-index -r /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/Packages -p /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/Packages -l /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/Packages.filelist -m /oe/build/tmp/deploy/glibc/ipk/i686-$arch-sdk/
fi
if [ -e /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/ ] ; then
touch /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/Packages
ipkg-make-index -r /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/Packages -p /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/Packages -l /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/Packages.filelist -m /oe/build/tmp/deploy/glibc/ipk/i686-linux-sdk-$arch/
fi
done
}
die() {
oefatal "$*"
}
base_do_install() {
:
}
do_package_stage_all() {
:
}
base_do_fetchall() {
:
}
base_do_package() {
:
}
oe_soinstall() {
# Purpose: Install shared library file and
# create the necessary links
# Example:
#
# oe_
#
#oenote installing shared library $1 to $2
#
libname=`basename $1`
install -m 755 $1 $2/$libname
sonamelink=`arm-angstrom-linux-gnueabi-readelf -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
solink=`echo $libname | sed -e 's/\.so\..*/.so/'`
ln -sf $libname $2/$sonamelink
ln -sf $libname $2/$solink
}
package_stagefile_shell() {
if [ "$PSTAGING_ACTIVE" = "1" ]; then
srcfile=$1
destfile=`echo $srcfile | sed s#/oe/build/tmp#/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg#`
destdir=`dirname $destfile`
mkdir -p $destdir
cp -dp $srcfile $destfile
fi
}
devshell_do_devshell() {
export TERMWINDOWTITLE="Bitbake Developer Shell"
gnome-terminal --disable-factory -t "$TERMWINDOWTITLE"
if [ $? -ne 0 ]; then
echo "Fatal: 'gnome-terminal --disable-factory -t "$TERMWINDOWTITLE"' not found. Check TERMCMD variable."
exit 1
fi
}
oe_libinstall() {
# Purpose: Install a library, in all its forms
# Example
#
# oe_libinstall libltdl /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/
# oe_libinstall -C src/libblah libblah /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image//usr/lib/
dir=""
libtool=""
silent=""
require_static=""
require_shared=""
staging_install=""
while [ "$#" -gt 0 ]; do
case "$1" in
-C)
shift
dir="$1"
;;
-s)
silent=1
;;
-a)
require_static=1
;;
-so)
require_shared=1
;;
-*)
oefatal "oe_libinstall: unknown option: $1"
;;
*)
break;
;;
esac
shift
done
libname="$1"
shift
destpath="$1"
if [ -z "$destpath" ]; then
oefatal "oe_libinstall: no destination path specified"
fi
if echo "$destpath/" | egrep '^/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/' >/dev/null
then
staging_install=1
fi
__runcmd () {
if [ -z "$silent" ]; then
echo >&2 "oe_libinstall: $*"
fi
$*
}
if [ -z "$dir" ]; then
dir=`pwd`
fi
dotlai=$libname.lai
# Sanity check that the libname.lai is unique
number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
if [ $number_of_files -gt 1 ]; then
oefatal "oe_libinstall: $dotlai is not unique in $dir"
fi
dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
olddir=`pwd`
__runcmd cd $dir
lafile=$libname.la
# If such file doesn't exist, try to cut version suffix
if [ ! -f "$lafile" ]; then
libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
lafile1=$libname.la
if [ -f "$lafile1" ]; then
libname=$libname1
lafile=$lafile1
fi
fi
if [ -f "$lafile" ]; then
# libtool archive
eval `cat $lafile|grep "^library_names="`
libtool=1
else
library_names="$libname.so* $libname.dll.a"
fi
__runcmd install -d $destpath/
dota=$libname.a
if [ -f "$dota" -o -n "$require_static" ]; then
__runcmd install -m 0644 $dota $destpath/
fi
if [ -f "$dotlai" -a -n "$libtool" ]; then
if test -n "$staging_install"
then
# stop libtool using the final directory name for libraries
# in staging:
__runcmd rm -f $destpath/$libname.la
__runcmd sed -e 's/^installed=yes$/installed=no/' \
-e '/^dependency_libs=/s,/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/\1,g' \
-e "/^dependency_libs=/s,\([[:space:]']\)/usr/lib,\1/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib,g" \
$dotlai >$destpath/$libname.la
else
__runcmd install -m 0644 $dotlai $destpath/$libname.la
fi
fi
for name in $library_names; do
files=`eval echo $name`
for f in $files; do
if [ ! -e "$f" ]; then
if [ -n "$libtool" ]; then
oefatal "oe_libinstall: $dir/$f not found."
fi
elif [ -L "$f" ]; then
__runcmd cp -P "$f" $destpath/
elif [ ! -L "$f" ]; then
libfile="$f"
__runcmd install -m 0755 $libfile $destpath/
fi
done
done
if [ -z "$libfile" ]; then
if [ -n "$require_shared" ]; then
oefatal "oe_libinstall: unable to locate shared library"
fi
elif [ -z "$libtool" ]; then
# special case hack for non-libtool .so.#.#.# links
baselibfile=`basename "$libfile"`
if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
sonamelink=`arm-angstrom-linux-gnueabi-readelf -d $libfile |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then
__runcmd ln -sf $baselibfile $destpath/$sonamelink
fi
__runcmd ln -sf $baselibfile $destpath/$solink
fi
fi
__runcmd cd "$olddir"
}
do_rm_work() {
cd /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11
for dir in *
do
if [ `basename ${dir}` = "temp" ]; then
echo "Not removing temp"
else
echo "Removing $dir" ; rm $dir -rf
fi
done
}
oe_runconf() {
if [ -x /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/configure ] ; then
cfgcmd="/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/configure \
--build=i686-linux \
--host=arm-angstrom-linux-gnueabi \
--target=arm-angstrom-linux-gnueabi \
--prefix=/usr \
--exec_prefix= \
--bindir=/usr/bin \
--sbindir=/sbin \
--libexecdir=/usr/libexec \
--datadir=/usr/share \
--sysconfdir=/etc \
--sharedstatedir=/usr/com \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--oldincludedir=/usr/include \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-udev-prefix= --with-libdir-name=/lib \
$@"
oenote "Running $cfgcmd..."
$cfgcmd || oefatal "oe_runconf failed"
else
oefatal "no configure script found"
fi
}
do_install() {
install -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image${usrsbindir} \
/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/sbin
oe_runmake 'DESTDIR=/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image' INSTALL=install install
install -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/init.d
install -m 0755 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/init /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/init.d/udev
install -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/default
install -m 0755 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/default /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/default/udev
mv /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/lib/udev/rules.d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/
ln -sf /etc/udev/rules.d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/lib/udev/
cp /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/rules/rules.d/* /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/
cp /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/rules/packages/* /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/mount.blacklist /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/local.rules /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/local.rules
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/permissions.rules /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/permissions.rules
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/run.rules /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/run.rules
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev.rules /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/udev.rules
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/links.conf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/links.conf
if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/devfs-udev.rules /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/rules.d/devfs-udev.rules
fi
touch /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/saved.uname
touch /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/saved.cmdline
touch /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/saved.atags
install -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/scripts/
install -m 0755 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/mount.sh /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/scripts/mount.sh
install -m 0755 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/network.sh /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/udev/scripts
for i in `find /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image -name "*.la"` ; do \
sed -i -e '/^dependency_libs=/s,/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/usr/lib/\1,g' $i
sed -i -e s:/oe/build/tmp/cross/armv5te/arm-angstrom-linux-gnueabi::g $i
sed -i -e s:/oe/build/tmp/cross/armv5te::g $i
sed -i -e s:/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib:/usr/lib:g $i
sed -i -e s:/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi::g $i
sed -i -e s:/oe/build/tmp/staging::g $i
sed -i -e s:/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141::g $i
sed -i -e s:/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp::g $i
sed -i -e s:/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image::g $i
done
}
do_rm_work_all() {
:
}
staging_package_installer() {
#stage-manager-ipkg -f /oe/build/tmp/deploy/glibc/pstage/opkg.conf -force-depends -o /oe/build/tmp install /oe/build/tmp/deploy/glibc/pstage/angstrom/3/glibc/staging-udev-c7x0-angstrom-linux-gnueabi_141-r11_i686-linux.ipk
STATUSFILE=/oe/build/tmp/usr/lib/opkg/status
echo "Package: staging-udev-c7x0-angstrom-linux-gnueabi" >> $STATUSFILE
echo "Version: 141-r11" >> $STATUSFILE
echo "Status: install user installed" >> $STATUSFILE
echo "Architecture: i686-linux" >> $STATUSFILE
echo "" >> $STATUSFILE
CTRLFILE=/oe/build/tmp/usr/lib/opkg/info/staging-udev-c7x0-angstrom-linux-gnueabi.control
echo "Package: staging-udev-c7x0-angstrom-linux-gnueabi" > $CTRLFILE
echo "Version: 141-r11" >> $CTRLFILE
echo "Architecture: i686-linux" >> $CTRLFILE
cd /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg
find -type f | grep -v ./CONTROL | sed -e 's/^\.//' > /oe/build/tmp/usr/lib/opkg/info/staging-udev-c7x0-angstrom-linux-gnueabi.list
}
oedebug() {
test $# -ge 2 || {
echo "Usage: oedebug level \"message\""
exit 1
}
test ${OEDEBUG:-0} -ge $1 && {
shift
echo "DEBUG:" $*
}
}
oe_runmake() {
if [ x"$MAKE" = x ]; then MAKE=make; fi
oenote make "$@"
make "$@" || die "oe_runmake failed"
}
populate_staging_preamble() {
if [ "$PSTAGING_ACTIVE" = "1" ]; then
stage-manager -p /oe/build/tmp/staging -c /oe/build/tmp/deploy/glibc/pstage/stamp-cache-staging -u || true
stage-manager -p /oe/build/tmp/cross/armv5te -c /oe/build/tmp/deploy/glibc/pstage/stamp-cache-cross -u || true
fi
}
updatercd_postinst() {
if test "x$D" != "x"; then
OPT="-r $D"
else
OPT="-s"
fi
update-rc.d $OPT udev start 03 S .
}
do_stage() {
autotools_stage_all
install -m 0644 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/udev-141/extras/volume_id/lib/libvolume_id.h /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
oe_libinstall -C extras/volume_id/lib -so libvolume_id /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib
oe_libinstall -C udev/lib -so libudev /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib
}
oe_machinstall() {
# Purpose: Install machine dependent files, if available
# If not available, check if there is a default
# If no default, just touch the destination
# Example:
# $1 $2 $3 $4
# oe_machinstall -m 0644 fstab /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image/etc/fstab
#
# TODO: Check argument number?
#
filename=`basename $3`
dirname=`dirname $3`
for o in `echo task-package_stage_all:local:c7x0:angstrom:linux-gnueabi:arm:build-linux:fail-fast:pn-udev:thumb-interwork:armv5te:libc-glibc | tr ':' ' '`; do
if [ -e $dirname/$o/$filename ]; then
oenote $dirname/$o/$filename present, installing to $4
install $1 $2 $dirname/$o/$filename $4
return
fi
done
# oenote overrides specific file NOT present, trying default=$3...
if [ -e $3 ]; then
oenote $3 present, installing to $4
install $1 $2 $3 $4
else
oenote $3 NOT present, touching empty $4
touch $4
fi
}
autotools_stage_all() {
if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
then
return
fi
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
mkdir -p /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
oe_runmake DESTDIR="/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging" install
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/include /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
if [ "i686-linux" = "arm-angstrom-linux-gnueabi" ]; then
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/bin /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/bin
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//sbin /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/sbin
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//bin /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/bin
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//sbin /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/sbin
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/libexec /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/libexec
if [ "/usr/lib" != "/usr/lib" ]; then
# python puts its files in here, make sure they are staged as well
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib
fi
fi
if [ -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib ]
then
olddir=`pwd`
cd /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib
las=$(find . -name \*.la -type f)
cd $olddir
echo "Found la files: $las"
for i in $las
do
sed -e 's/^installed=yes$/installed=no/' \
-e '/^dependency_libs=/s,/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*.la\),/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/\1,g' \
-e '/^dependency_libs=/s,/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib,g' \
-e "/^dependency_libs=/s,\([[:space:]']\)/usr/lib,\1/oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib,g" \
-i /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib/$i
done
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib
fi
# Ok, this is nasty. pkgconfig.bbclass is usually used to install .pc files,
# however some packages rely on the presence of .pc files to enable/disable
# their configurataions in which case we better should not install everything
# unconditionally, but rather depend on the actual results of make install.
# The good news though: a) there are not many packages doing this and
# b) packaged staging will fix that anyways. :M:
if [ "${AUTOTOOLS_STAGE_PKGCONFIG}" = "1" ]
then
if [ -e /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib/pkgconfig/ ] ; then
echo "cp -f /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib/pkgconfig/*.pc /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig/"
cp -f /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/lib/pkgconfig/*.pc /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig/
fi
if [ -e /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share/pkgconfig/ ] ; then
echo "cp -f /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share/pkgconfig/*.pc /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/pkgconfig/"
cp -f /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share/pkgconfig/*.pc /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share/pkgconfig/
fi
fi
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share/man || true
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share/info || true
autotools_stage_dir /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/share /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/share
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
}
do_configure() {
autotools_stage_do_configure
}
oenote() {
echo "NOTE:" "$*"
}
SRC_DISTRIBUTECOMMAND() {
test -e ${SRC}.md5 && ln -sf ${SRC}.md5 .
ln -sf ${SRC} .
}
do_testlab() {
if [ -e /oe/build/tmp/rootfs/udev/etc/opkg ] && [ "${ONLINE_PACKAGE_MANAGEMENT}" = "full" ] ; then
TESTLAB_DIR="/oe/build/tmp/deploy/glibc/images/c7x0/Angstrom-udev-glibc-ipk-2009.X-test-20090913-c7x0-testlab"
mkdir -p ${TESTLAB_DIR}/
ls -laR /oe/build/tmp/rootfs/udev > ${TESTLAB_DIR}/files-in-image.txt
echo > ${TESTLAB_DIR}/installed-packages.txt
echo -e "digraph depends {\n node [shape=plaintext]" > ${TESTLAB_DIR}/depends.dot
for pkg in $(opkg-cl -f /oe/build/tmp/rootfs/udev/etc/opkg -o /oe/build/tmp/rootfs/udev list_installed | awk '{print $1}') ; do
opkg-cl -f /oe/build/tmp/rootfs/udev/etc/opkg -o /oe/build/tmp/rootfs/udev info $pkg | awk '/Package/ {printf $2"_"} /Version/ {printf $2"_"} /Archi/ {print $2".ipk"}' >> ${TESTLAB_DIR}/installed-packages.txt
for depends in $(opkg-cl -f /oe/build/tmp/rootfs/udev/etc/opkg -o /oe/build/tmp/rootfs/udev info $pkg | grep Depends) ; do
echo "$pkg OPP $depends;" | grep -v "(" | grep -v ")" | grep -v Depends | sed -e 's:,::g' -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' |sed 's:OPP:->:g' >> ${TESTLAB_DIR}/depends.dot
done
for recommends in $(opkg-cl -f /oe/build/tmp/rootfs/udev/etc/opkg -o /oe/build/tmp/rootfs/udev info $pkg | grep Recom) ; do
echo "$pkg OPP $recommends [style=dotted];" | grep -v "(" | grep -v ")" | grep -v Recom | sed -e 's:,::g' -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' |sed 's:OPP:->:g' >> ${TESTLAB_DIR}/depends.dot
done
done
echo "}" >> ${TESTLAB_DIR}/depends.dot
grep -v kernel_2 ${TESTLAB_DIR}/depends.dot | grep -v kernel_image > ${TESTLAB_DIR}/depends-nokernel.dot
grep -v libc6 ${TESTLAB_DIR}/depends-nokernel.dot | grep -v libgcc > ${TESTLAB_DIR}/depends-nokernel-nolibc.dot
grep -v update_ ${TESTLAB_DIR}/depends-nokernel-nolibc.dot > ${TESTLAB_DIR}/depends-nokernel-nolibc-noupdate.dot
grep -v kernel_module ${TESTLAB_DIR}/depends-nokernel-nolibc-noupdate.dot > ${TESTLAB_DIR}/depends-nokernel-nolibc-noupdate-nomodules.dot
#dot has some library troubles when run under fakeroot, uncomment at your own risk
#dot -Tpng -o ${TESTLAB_DIR}/image-dependencies.png ${TESTLAB_DIR}/depends.dot
#dot -Tpng -o ${TESTLAB_DIR}/image-dependencies-nokernel-nolibc.png ${TESTLAB_DIR}/depends-nokernel-nolibc.dot
#dot -Tpng -o ${TESTLAB_DIR}/image-dependencies-nokernel-nolibc-noupdate.png ${TESTLAB_DIR}/depends-nokernel-nolibc-noupdate.dot
#dot -Tpng -o ${TESTLAB_DIR}/image-dependencies-nokernel-nolibc-noupdate-nomodules.png ${TESTLAB_DIR}/depends-nokernel-nolibc-noupdate-nomodules.dot
for file in $(cat ${TESTLAB_DIR}/installed-packages.txt) ; do
du -k $(find /oe/build/tmp/deploy/glibc/ipk -name "$file") | head -n1
done | grep "\.ipk" | sed -e s:/oe/build/tmp/deploy/glibc/ipk::g | sort -n -r | awk '{print $1 "\tKiB " $2}' > ${TESTLAB_DIR}/installed-package-sizes.txt
fi
}
autotools_stage_do_install() {
autotools_do_install
}
ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
if [ -e /etc/ld.so.conf ] ; then
[ -x /sbin/ldconfig ] && /sbin/ldconfig
fi
fi
}
autotools_do_install() {
oe_runmake 'DESTDIR=/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/image' install
}
populate_staging_postamble() {
if [ "$PSTAGING_ACTIVE" = "1" ]; then
# list the packages currently installed in staging
# stage-manager-ipkg -f /oe/build/tmp/deploy/glibc/pstage/opkg.conf -o /oe/build/tmp list_installed | awk '{print $1}' > /oe/build/tmp/deploy/glibc/pstage/installed-list
# exitcode == 5 is ok, it means the files change
set +e
stage-manager -p /oe/build/tmp/staging -c /oe/build/tmp/deploy/glibc/pstage/stamp-cache-staging -u -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/staging
exitcode=$?
if [ "$exitcode" != "5" -a "$exitcode" != "0" ]; then
exit $exitcode
fi
stage-manager -p /oe/build/tmp/cross/armv5te -c /oe/build/tmp/deploy/glibc/pstage/stamp-cache-cross -u -d /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/cross/armv5te
if [ "$exitcode" != "5" -a "$exitcode" != "0" ]; then
exit $exitcode
fi
set -e
fi
}
staging_helper() {
# Assemble appropriate opkg.conf
conffile=/oe/build/tmp/deploy/glibc/pstage/opkg.conf
mkdir -p /oe/build/tmp/deploy/glibc/pstage/pstaging_lists
if [ ! -e $conffile ]; then
ipkgarchs="i686-linux"
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> $conffile
priority=$(expr $priority + 5)
done
echo "dest root /" >> $conffile
fi
if [ ! -e /oe/build/tmp/usr/lib/opkg/info/ ]; then
mkdir -p /oe/build/tmp/usr/lib/opkg/info/
fi
if [ ! -e /oe/build/tmp/usr/lib/ipkg/ ]; then
cd /oe/build/tmp/usr/lib/
ln -sf opkg/ ipkg || true
fi
}
staging_packager() {
mkdir -p /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL
mkdir -p /oe/build/tmp/deploy/glibc/pstage/angstrom/3/glibc
echo "Package: staging-udev-c7x0-angstrom-linux-gnueabi" > /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Version: 141-r11" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Description: udev is a daemon which dynamically creates and removes device nodes from /dev/, handles hotplug events and loads drivers at boot time. It replaces the hotplug package and requires a kernel not older than 2.6.12." >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Section: base" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Priority: Optional" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Maintainer: Angstrom Developers <angstrom-distro-devel@linuxtogo.org>" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
echo "Architecture: i686-linux" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
# Protect against empty SRC_URI
srcuri="http://kernel.org/pub/linux/utils/kernel/hotplug/udev-141.tar.gz file://mount.blacklist file://run.rules file://udev.rules file://devfs-udev.rules file://links.conf file://permissions.rules file://mount.sh file://network.sh file://local.rules file://default file://init"
if [ "$srcuri" == "" ]; then
srcuri="OpenEmbedded"
fi
echo "Source: http://kernel.org/pub/linux/utils/kernel/hotplug/udev-141.tar.gz file://mount.blacklist file://run.rules file://udev.rules file://devfs-udev.rules file://links.conf file://permissions.rules file://mount.sh file://network.sh file://local.rules file://default file://init" >> /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/CONTROL/control
# Deal with libtool not supporting sysroots
# Need to remove hardcoded paths and fix these when we install the
# staging packages.
# Could someone please add sysroot support to libtool!
for i in `find /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg -name "*.la" -type f` ; do \
sed -i -e s:/oe/build/tmp/staging:FIXMESTAGINGDIR:g $i
done
stage-manager-ipkg-build -o 0 -g 0 /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg /oe/build/tmp/deploy/glibc/pstage/angstrom/3/glibc
}
do_compile() {
base_do_compile
}
base_do_checkuriall() {
:
}
autotools_stage_includes() {
if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
then
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
mkdir -p /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
make DESTDIR="/oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging" install
cp -pPR /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging//usr/include/* /oe/build/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
rm -rf /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging
fi
}
oewarn() {
echo "WARNING:" "$*"
}
oefatal() {
echo "FATAL:" "$*"
exit 1
}
base_do_compile() {
if [ -e Makefile -o -e makefile ]; then
oe_runmake || die "make failed"
else
oenote "nothing to compile"
fi
}
autotools_stage_dir() {
from="$1"
to="$2"
# This will remove empty directories so we can ignore them
rmdir "$from" 2> /dev/null || true
if [ -d "$from" ]; then
mkdir -p "$to"
cp -fpPR "$from"/* "$to"
fi
}
do_package_write() {
:
}
MIRRORS() {
ftp://ftp.debian.org/debian/pool/main http://snapshot.debian.net/archive/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.de.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.au.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.cl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.hr.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.fi.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.hk.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.hu.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.ie.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.it.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.jp.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.no.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.pl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.ro.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.si.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.es.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.se.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool ftp://ftp.tr.debian.org/debian/pool
ftp://ftp.gnu.org/gnu ftp://mirrors.kernel.org/gnu
ftp://ftp.gnu.org/gnu ftp://ftp.cs.ubc.ca/mirror2/gnu
ftp://ftp.gnu.org/gnu ftp://sunsite.ust.hk/pub/gnu
ftp://ftp.gnu.org/gnu ftp://ftp.ayamura.org/pub/gnu
http://kernel.org http://www.kernel.org/pub
http://kernel.org ftp://ftp.us.kernel.org/pub
http://kernel.org ftp://ftp.uk.kernel.org/pub
http://kernel.org ftp://ftp.hk.kernel.org/pub
http://kernel.org ftp://ftp.au.kernel.org/pub
http://kernel.org ftp://ftp.jp.kernel.org/pub
ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/
ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.surfnet.nl/pub/security/gnupg/
ftp://ftp.gnupg.org/gcrypt/ http://gulus.USherbrooke.ca/pub/appl/GnuPG/
ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN
ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/
ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnutls.org/pub/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnupg.org/gcrypt/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://www.mirrors.wiretapped.net/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://josefsson.org/gnutls/releases/
http://ftp.info-zip.org/pub/infozip/src/ http://mirror.switch.ch/ftp/mirror/infozip/src/
http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.tau.ac.il/pub/unix/admin/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.kaizo.org/pub/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.tux.org/pub/sites/vic.cc.purdue.edu/tools/unix/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://sunsite.ualberta.ca/pub/Mirror/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://the.wiretapped.net/pub/security/host-security/lsof/
http://www.apache.org/dist http://archive.apache.org/dist
ftp://.*/.* http://mirrors.openembedded.org/
https?$://.*/.* http://mirrors.openembedded.org/
ftp://.*/.* http://sources.openembedded.org/
https?$://.*/.* http://sources.openembedded.org/
ftp://.*/.* http://www.angstrom-distribution.org/unstable/sources/
https?$://.*/.* http://www.angstrom-distribution.org/unstable/sources/
}
autotools_staging_pstage() {
mkdir -p /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/staging/
cp -fpPR /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging-pstage//oe/build/tmp/staging/* /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/staging-pkg/staging/ || /bin/true
cp -fpPR /oe/build/tmp/work/c7x0-angstrom-linux-gnueabi/udev-141-r11/temp-staging-pstage//oe/build/tmp/staging/* /oe/build/tmp/staging/ || /bin/true
}
updatercd_prerm() {
if test "x$D" = "x"; then
/etc/init.d/udev stop
fi
}
cd /oe/build
do_package_stage_all