Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samuel Holland
packages
Commits
0281cfdc
Verified
Commit
0281cfdc
authored
Jul 03, 2018
by
A. Wilcox
Browse files
system/easy-kernel-power8: lo, our first kernel flavour
parent
8f0c74f2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4624 additions
and
0 deletions
+4624
-0
system/easy-kernel-power8/APKBUILD
system/easy-kernel-power8/APKBUILD
+83
-0
system/easy-kernel-power8/ast-endianness.patch
system/easy-kernel-power8/ast-endianness.patch
+38
-0
system/easy-kernel-power8/config-ppc64
system/easy-kernel-power8/config-ppc64
+4503
-0
No files found.
system/easy-kernel-power8/APKBUILD
0 → 100644
View file @
0281cfdc
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adelie Platform Group <adelie-devel@lists.adelielinux.org>
_pkgname
=
easy-kernel-power8
pkgver
=
4.14.48
pkgrel
=
8
pkgname
=
$_pkgname
-
$pkgver
-mc
$pkgrel
pkgdesc
=
"The Linux kernel, packaged for POWER8 and POWER9 computers"
url
=
"https://kernel.org/"
arch
=
"ppc64"
options
=
"!check !dbg !strip !tracedeps"
license
=
"GPL-2.0-only"
depends
=
""
makedepends
=
"bc gzip lzop openssl-dev xz"
install
=
""
provides
=
"easy-kernel=
$pkgver
-r
$pkgrel
"
subpackages
=
"
$_pkgname
-modules-
$pkgver
-mc
$pkgrel
:modules
$_pkgname
-src-
$pkgver
-mc
$pkgrel
:src"
source
=
"https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.tar.xz
https://distfiles.adelielinux.org/source/linux-4.14-mc
$pkgrel
.patch.xz
ast-endianness.patch
config-ppc64"
builddir
=
"
$srcdir
/linux-4.14"
prepare
()
{
default_prepare
cd
"
$srcdir
"
cat
linux-4.14-mc
$pkgrel
.patch.xz | unxz -> linux-4.14-mc
$pkgrel
.patch
cd
"
$builddir
"
patch
-Np1
<../linux-4.14-mc
$pkgrel
.patch
cd
"
$srcdir
"
cp
config-
$CARCH
linux-4.14/.config
cp
-pr
linux-4.14 linux-src
}
build
()
{
cd
"
$builddir
"
make
LDFLAGS
=
""
}
package
()
{
cd
"
$builddir
"
mkdir
-p
"
$pkgdir
"
/boot
make
INSTALL_PATH
=
"
$pkgdir
"
/boot
\
INSTALL_MOD_PATH
=
"
$pkgdir
"
\
install
modules_install
if
[
-f
"
$pkgdir
"
/boot/vmlinuz
]
;
then
mv
"
$pkgdir
"
/boot/vmlinuz
\
"
$pkgdir
"
/boot/vmlinuz-
$pkgver
-mc
$pkgrel
-easy
fi
if
[
-f
"
$pkgdir
"
/boot/vmlinux
]
;
then
mv
"
$pkgdir
"
/boot/vmlinux
\
"
$pkgdir
"
/boot/vmlinux-
$pkgver
-mc
$pkgrel
-easy
fi
install
-D
"
$builddir
"
/include/config/kernel.release
\
"
$pkgdir
"
/usr/share/kernel/easy-
$pkgver
-mc
$pkgrel
/kernel.release
}
modules
()
{
pkgdesc
=
"Modules / device drivers for easy-kernel"
provides
=
"easy-kernel-modules=
$pkgver
-r
$pkgrel
"
autodeps
=
0
# modules should not depend on src just for symlink
mkdir
-p
"
$subpkgdir
"
/lib
mv
"
$pkgdir
"
/lib/modules
"
$subpkgdir
"
/lib/
rm
"
$subpkgdir
"
/lib/modules/
$pkgver
-mc
$pkgrel
-easy
/build
rm
"
$subpkgdir
"
/lib/modules/
$pkgver
-mc
$pkgrel
-easy
/source
ln
-s
"../../../usr/src/linux-
$pkgver
-mc
$pkgrel
"
\
"
$subpkgdir
"
/lib/modules/
$pkgver
-mc
$pkgrel
-easy
/build
ln
-s
"../../../usr/src/linux-
$pkgver
-mc
$pkgrel
"
\
"
$subpkgdir
"
/lib/modules/
$pkgver
-mc
$pkgrel
-easy
/source
}
src
()
{
pkgdesc
=
"Kernel source code used to build the kernel"
provides
=
"easy-kernel-src=
$pkgver
-r
$pkgrel
"
mkdir
-p
"
$subpkgdir
"
/usr/src
mv
"
$srcdir
"
/linux-src
"
$subpkgdir
"
/usr/src/linux-
$pkgver
-mc
$pkgrel
}
sha512sums
=
"77e43a02d766c3d73b7e25c4aafb2e931d6b16e870510c22cef0cdb05c3acb7952b8908ebad12b10ef982c6efbe286364b1544586e715cf38390e483927904d8 linux-4.14.tar.xz
3fe2da1714cc83d909ba43d27c7f22ef4f2a6ecfd91ff81e0e141a0dd742ec78ad11392186871762f410615ae7c7f33dd814e0f194c7f7aed1dee2d9fca0252d linux-4.14-mc8.patch.xz
e41d9111219342ad13367902242444ecdd847a93575c3f9709d6c6a075bc650f4a15be9db1a8798435fc0a0b56d41705829bfe0d2c2d88f8d1c28931e27ef5be ast-endianness.patch
5fc64889be042c2bc7c890f4c66d12dd5b9765b21dacfe23d57c7d8a863798065cd555842db6cbf4a628fedab4952371899e1f6249ab852d3b565640030f2e12 config-ppc64"
system/easy-kernel-power8/ast-endianness.patch
0 → 100644
View file @
0281cfdc
Author: Elizabeth Myers <elizabeth@adelielinux.org>
I'm certain this fix is wrong fwiw, but it's the best I could come with
--- linux-4.14/drivers/gpu/drm/ast/ast_fb.c.old 2017-11-12 12:46:13.000000000 -0600
+++ linux-4.14/drivers/gpu/drm/ast/ast_fb.c 2018-06-30 20:54:43.530000000 -0500
@@ -109,9 +109,30 @@
unmap = true;
}
for (i = y; i <= y2; i++) {
+ int copy_width = x2 - x + 1;
/* assume equal stride for now */
src_offset = dst_offset = i * afbdev->afb.base.pitches[0] + (x * bpp);
- memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, (x2 - x + 1) * bpp);
+ switch (bpp) {
+ case 4:
+ while (copy_width) {
+ iowrite32(*(u32 *)(afbdev->sysram + src_offset),
+ bo->kmap.virtual + src_offset);
+ src_offset += 4;
+ copy_width--;
+ }
+ break;
+ case 2:
+ while (copy_width) {
+ iowrite16(*(u16 *)(afbdev->sysram + src_offset),
+ bo->kmap.virtual + src_offset);
+ src_offset += 2;
+ copy_width--;
+ }
+ break;
+ default:
+ memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, (x2 - x + 1) * bpp);
+ break;
+ }
}
if (unmap)
system/easy-kernel-power8/config-ppc64
0 → 100644
View file @
0281cfdc
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment