mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
reworking atv-bootloader build script to create a mach_kernel directly
This commit is contained in:
parent
9a12169bb2
commit
a883173406
@ -22,9 +22,18 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
get_version
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
TOOLS_PREFIX=$(readlink -f ../)
|
||||
TOOLS_PREFIX="$ROOT/$BUILD"
|
||||
|
||||
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
|
||||
|
@ -25,8 +25,8 @@ PKG_ARCH="i386 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://code.google.com/p/atv-bootloader/"
|
||||
PKG_URL="http://travisghansen.openelec.tv/sources/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS="darwin-cross"
|
||||
PKG_BUILD_DEPENDS=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="darwin-cross linux"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="tools"
|
||||
PKG_SHORTDESC="atv-bootloader: Tool to create a mach_kernel compaitible kernel image"
|
||||
|
@ -46,18 +46,10 @@ mkdir -p $TARGET_IMG
|
||||
KERNEL_ARCH="arm"
|
||||
fi
|
||||
|
||||
cp -PR $BUILD/linux-*/arch/$KERNEL_ARCH/boot/$KERNEL_IMAGE $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.kernel
|
||||
|
||||
if [ "$BOOTLOADER" = "atv-bootloader" ]; then
|
||||
$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
|
||||
|
||||
echo "rm -rf $TARGET_IMG/$DISTRONAME-$TARGET_VERSION.system" >> $FAKEROOT_SCRIPT
|
||||
|
Loading…
x
Reference in New Issue
Block a user