reworking atv-bootloader build script to create a mach_kernel directly

This commit is contained in:
Travis Glenn Hansen 2011-05-17 01:27:45 -06:00
parent 9a12169bb2
commit a883173406
3 changed files with 14 additions and 13 deletions

View File

@ -22,9 +22,18 @@
. config/options $1 . config/options $1
get_version
cd $PKG_BUILD cd $PKG_BUILD
TOOLS_PREFIX=$(readlink -f ../) TOOLS_PREFIX="$ROOT/$BUILD"
sed -i -e "s:/opt:$TOOLS_PREFIX:" Makefile sed -i -e "s:/opt:$TOOLS_PREFIX:" Makefile
cp -PR $ROOT/$BUILD/linux-*/arch/x86/boot/bzImage vmlinuz
make clean
make LDFLAGS=""
cp -PR mach_kernel $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel
chmod 0644 $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.mach_kernel

View File

@ -25,8 +25,8 @@ PKG_ARCH="i386 x86_64"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="http://code.google.com/p/atv-bootloader/" PKG_SITE="http://code.google.com/p/atv-bootloader/"
PKG_URL="http://travisghansen.openelec.tv/sources/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_URL="http://travisghansen.openelec.tv/sources/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="darwin-cross" PKG_DEPENDS=""
PKG_BUILD_DEPENDS="" PKG_BUILD_DEPENDS="darwin-cross linux"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="tools" PKG_SECTION="tools"
PKG_SHORTDESC="atv-bootloader: Tool to create a mach_kernel compaitible kernel image" PKG_SHORTDESC="atv-bootloader: Tool to create a mach_kernel compaitible kernel image"

View File

@ -46,18 +46,10 @@ mkdir -p $TARGET_IMG
KERNEL_ARCH="arm" KERNEL_ARCH="arm"
fi fi
cp -PR $BUILD/linux-*/arch/$KERNEL_ARCH/boot/$KERNEL_IMAGE $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
if [ "$BOOTLOADER" = "atv-bootloader" ]; then if [ "$BOOTLOADER" = "atv-bootloader" ]; then
$SCRIPTS/build atv-bootloader $SCRIPTS/build atv-bootloader
echo "creating mach_kernel compatible kernel image"
cp -PR $BUILD/linux-*/arch/$KERNEL_ARCH/boot/$KERNEL_IMAGE $BUILD/atv-bootloader*
cd $BUILD/atv-bootloader*
mv $KERNEL_IMAGE vmlinuz
make clean
make LDFLAGS=""
cd -
cp -PR $BUILD/atv-bootloader*/mach_kernel $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
else
cp -PR $BUILD/linux-*/arch/$KERNEL_ARCH/boot/$KERNEL_IMAGE $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
fi fi
echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT