Created
August 29, 2012 08:12
-
-
Save chattama/3508370 to your computer and use it in GitHub Desktop.
archlinux makepkg on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo aptitude install libarchive-dev bsdtar | |
git clone git://projects.archlinux.org/pacman.git | |
cd pacman | |
./autogen.sh | |
./configure --disable-doc | |
make | |
sudo make install | |
cd package | |
cp /usr/local/etc/makepkg.conf ./makepkg-arm.conf | |
makepkg-arm.conf ================================================== | |
CARCH="arm" | |
PKGBUILD ========================================================== | |
pkgname=linux-raspberrypi-custom | |
pkgver=3.2.27 | |
pkgrel=1 | |
pkgdesc="The Linux Kernel and modules for Raspberry Pi (customized)" | |
arch=(arm) | |
url="http://www.kernel.org/" | |
license=('GPL2') | |
xtool=/opt/cross/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- | |
build() { | |
cd $startdir/../linux | |
make ARCH=arm CROSS_COMPILE=$xtool | |
} | |
package() { | |
cd $startdir/../linux | |
make ARCH=arm CROSS_COMPILE=$xtool INSTALL_MOD_PATH=$pkgdir modules_install firmware_install | |
mkdir $pkgdir/boot | |
cp $startdir/../linux/arch/arm/boot/zImage $pkgdir/boot/kernel.img | |
} | |
=================================================================== | |
makepkg --conf ./makepkg-arm.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I use this?