Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seblu
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
linux-seblu
Commits
96b1f958
Commit
96b1f958
authored
10 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
linux-seblu 3.16_rc2
parent
9be33777
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PKGBUILD
+17
-17
17 additions, 17 deletions
PKGBUILD
with
17 additions
and
17 deletions
PKGBUILD
+
17
−
17
View file @
96b1f958
...
...
@@ -3,15 +3,15 @@
pkgname
=
linux-seblu
pkgver
=
3.1
5
pkgver
=
3.1
6_rc2
pkgrel
=
1
arch
=(
'x86_64'
)
license
=(
'GPL2'
)
url
=
'http://www.kernel.org'
options
=(
'!strip'
)
makedepends
=(
'kmod'
'bc'
'git'
)
source
=(
"git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v
$pkgver
"
"config.
$CARCH
.
$pkgver
"
)
source
=(
"git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v
$
{
pkgver
/_/-
}
"
"config.
$CARCH
.
$
{
pkgver
/_/-
}
"
)
md5sums
=(
'SKIP'
'SKIP'
)
shopt
-s
nullglob
...
...
@@ -28,7 +28,7 @@ prepare() {
# loading default config
# use make localmodconfig to check .config is correct
msg2
'Copying config'
install
"
$srcdir
/config.
$CARCH
.
$pkgver
"
.config
install
"
$srcdir
/config.
$CARCH
.
$
{
pkgver
/_/-
}
"
.config
# force suffixe in config (must be the right!)
msg2
'Setting kernel suffix'
...
...
@@ -79,25 +79,22 @@ package() {
# and it's done by kernel-install in .install
make
INSTALL_MOD_PATH
=
"
$pkgdir
/usr"
DEPMOD
=
/bin/true modules_install
# copy headers
copy_headers
# gzip -9 all modules to safe 100MB of space
msg2
'Gzip modules harder'
find
"
$pkgdir
"
-name
'*.ko'
-exec
gzip
-9
{}
\;
#
remove build and source link
s
rm
-f
"
$pkgdir
/usr/lib/modules/
$kernrel
"
/
{
source
,build
}
#
copy header
s
install_sources
# remove
the
firmware
# remove firmware
s
rm
-rf
"
$pkgdir
/usr/lib/firmware"
# check rights
chown
-R
root.root
"
$pkgdir
/usr/src/linux-
$kernrel
"
chmod
-R
u
=
rwX,go
=
rX
"
$pkgdir
/usr/src/linux-
$kernrel
"
# gzip -9 all modules to safe 100MB of space
msg2
'Gzip modules harder'
find
"
$pkgdir
"
-name
'*.ko'
-exec
gzip
-9
{}
\;
}
copy_headers
()
{
install_sources
()
{
# remove previous build and source links
rm
-f
"
$pkgdir
/usr/lib/modules/
$kernrel
"
/
{
source
,build
}
# create build symlink into /usr/lib/modules
ln
-sf
../../../src/linux-
$kernrel
"
$pkgdir
/usr/lib/modules/
$kernrel
/build"
...
...
@@ -210,6 +207,9 @@ copy_headers() {
esac
done
# check rights
chown
-R
root.root
"
$pkgdir
/usr/src/linux-
$kernrel
"
chmod
-R
u
=
rwX,go
=
rX
"
$pkgdir
/usr/src/linux-
$kernrel
"
}
# vim:set ts=2 sw=2 ft=sh et:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment