Skip to content

Instantly share code, notes, and snippets.

@chattama
Created August 29, 2012 08:12
Show Gist options
  • Save chattama/3508370 to your computer and use it in GitHub Desktop.
Save chattama/3508370 to your computer and use it in GitHub Desktop.
archlinux makepkg on ubuntu
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
@Roadhog360
Copy link

How do I use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment