mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
core/linux-chromebook to 20130707-1
This commit is contained in:
parent
5b93dd324a
commit
91d6dc1347
1 changed files with 10 additions and 13 deletions
|
@ -1,23 +1,24 @@
|
|||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# Maintainer: stratum nine <strata@dropswitch.net>
|
||||
|
||||
buildarch=4
|
||||
|
||||
pkgbase=linux-chromebook
|
||||
pkgname=('linux-chromebook' 'linux-headers-chromebook')
|
||||
pkgver=20130514
|
||||
pkgver=20130707
|
||||
_kernelname=${pkgname#linux}
|
||||
_basever=3.4
|
||||
pkgrel=2
|
||||
pkgrel=1
|
||||
pkgdesc="Chromium OS kernel with ArchLinux ARM tweaks for SAMSUNG ARM Chromebook."
|
||||
arch=('armv7h')
|
||||
url="http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel.git;a=summary"
|
||||
license=('GPL2')
|
||||
makedepends=('uboot-mkimage' 'dtc' 'git')
|
||||
source=('change-default-console-loglevel.patch'
|
||||
'config.exynos5'
|
||||
'config'
|
||||
'kernel.its')
|
||||
md5sums=('b92685a88e9784b3b7c609894ee8b5da'
|
||||
'559c68f10a62ecf8994ae582932dc31c'
|
||||
'3e41b780af909d05209ed79810d29359'
|
||||
'1ee7e0f62516ba3af19022c25636011c')
|
||||
|
||||
_gitroot='https://git.chromium.org/git/chromiumos/third_party/kernel.git'
|
||||
|
@ -32,17 +33,13 @@ build() {
|
|||
cd "$_gitname" && git pull origin
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone "$_gitroot" "$_gitname"
|
||||
cd "$_gitname"
|
||||
git checkout "$_gitbranch"
|
||||
git clone --depth 1 --branch="${_gitbranch}" "$_gitroot" "$_gitname"
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting build..."
|
||||
|
||||
rm -rf "$srcdir/${_gitname}-build"
|
||||
git clone "$srcdir/$_gitname" "$srcdir/${_gitname}-build"
|
||||
cd "$srcdir/${_gitname}-build"
|
||||
cd "$srcdir/${_gitname}"
|
||||
|
||||
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
|
||||
# remove this when a Kconfig knob is made available by upstream
|
||||
|
@ -50,7 +47,7 @@ build() {
|
|||
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
|
||||
|
||||
# Kernel configuration
|
||||
cp "${srcdir}/config.exynos5" .config
|
||||
cp "${srcdir}/config" .config
|
||||
|
||||
msg "Get kernel version ..."
|
||||
make prepare
|
||||
|
@ -75,7 +72,7 @@ package_linux-chromebook() {
|
|||
provides=('linux26' "linux=${pkgver}")
|
||||
install=${pkgname}.install
|
||||
|
||||
cd "${srcdir}/${_gitname}-build"
|
||||
cd "${srcdir}/${_gitname}"
|
||||
|
||||
KARCH=arm
|
||||
|
||||
|
@ -123,7 +120,7 @@ package_linux-headers-chromebook() {
|
|||
cd "${pkgdir}/usr/lib/modules/${_kernver}"
|
||||
ln -sf ../../../src/linux-${_kernver} build
|
||||
|
||||
cd "${srcdir}/${_gitname}-build"
|
||||
cd "${srcdir}/${_gitname}"
|
||||
install -D -m644 Makefile \
|
||||
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
|
||||
install -D -m644 kernel/Makefile \
|
||||
|
|
Loading…
Reference in a new issue