blob: a8c7e65abf89f0bb4c794b89ca8d3ac2c4093243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# Maintainer: 7Ji <pugokughin@gmail.com>
_desc="flippy's AArch64-focused fork aiming to increase usability. Prebuilt by ophub."
_pkgver_main=6.0.7
_pkgver_suffix=flippy-78+
_pkgver_uname="${_pkgver_main}-${_pkgver_suffix}"
_url_repo="https://github.com/ophub/kernel"
_url_raw="${_url_repo}/raw/main/pub/stable/${_pkgver_main}"
_pkgbase=linux-aarch64-flippy
pkgbase="${_pkgbase}-bin"
pkgname=(
"${pkgbase}"
"${pkgbase}-headers"
"${pkgbase}-dtb-allwinner"
"${pkgbase}-dtb-amlogic"
"${pkgbase}-dtb-rockchip"
)
pkgver="${_pkgver_main}"
pkgrel=1
arch=('aarch64')
url="${_url_repo}"
license=('GPL2')
options=(!strip)
source=(
"${_url_raw}/boot-${_pkgver_uname}.tar.gz"
"${_url_raw}/dtb-allwinner-${_pkgver_uname}.tar.gz"
"${_url_raw}/dtb-amlogic-${_pkgver_uname}.tar.gz"
"${_url_raw}/dtb-rockchip-${_pkgver_uname}.tar.gz"
"${_url_raw}/header-${_pkgver_uname}.tar.gz"
"${_url_raw}/modules-${_pkgver_uname}.tar.gz"
)
noextract=("${source[@]##*/}")
sha256sums=(
'4fdb7a91a6ea395beb02254352d259f578913f9610a1b40dc240c380bc5e4e64'
'585e9c6055aeed4573c4cf59d9e769df206b7a79846866ab42ce2bb40d029095'
'9f57c9fa29f32fc449f20e1f2548ee2049a0c7ef6bcb34fcf9ad61c4955dfba9'
'14dca8da6a0cbef2a5e55af822ba3d7c738565fe42a61aa227086f9638385370'
'efd32c0b24d4fd88247cb17355c7ac35816be3bf14424ab50c64e1a07a7376d6'
'ef07fbfb56a8b0ee7214fef511d2a33656ab3748ea05230f770acb9116366c75'
)
_dtb_common_pkg="${_pkgbase}-dtb"
package_linux-aarch64-flippy-bin() {
pkgdesc="The Linux Kernel and module - ${_desc}"
depends=(
"${_dtb_common_pkg}"
'coreutils'
'initramfs'
'kmod'
)
optdepends=(
'uboot-legacy-initrd-hooks: to generate uboot legacy initrd images'
'linux-firmware-amlogic-ophub: firmware for Amlogic SoCs'
'wireless-regdb: to set the correct wireless channels of your country'
"${_pkgbase}-dtb-allwinner: dtbs for Allwinner SoCs"
"${_pkgbase}-dtb-amlogic: dtbs for Amlogic SoCs"
"${_pkgbase}-dtb-rockchip: dtbs for Rockchip SoCs"
)
provides=(
"${_pkgbase}=${pkgver}"
)
conflicts=(
"${_pkgbase}"
)
backup=(
"etc/mkinitcpio.d/${_pkgbase}.preset"
)
# Install modules
install -d -m 755 "${pkgdir}/usr/lib/modules"
tar -C "${pkgdir}/usr/lib/modules" -xvzf "${srcdir}/modules-${_pkgver_uname}.tar.gz"
# Install pkgbase
local _dir_module="${pkgdir}/usr/lib/modules/${_pkgver_uname}"
echo "${_pkgbase}" | install -D -m 644 /dev/stdin "${_dir_module}/pkgbase"
# Install kernel itself
local _vmlinuz="vmlinuz-${_pkgver_uname}"
tar -C "${_dir_module}" -xvzf "${srcdir}/boot-${_pkgver_uname}.tar.gz" "${_vmlinuz}"
mv -v "${_dir_module}/${_vmlinuz}" "${_dir_module}/vmlinuz"
# Remove non-standard folders
rm -f "${pkgdir}/usr/lib/modules/${_pkgver_uname}/"{build,source}
# install mkinitcpio preset file
sed "s|%PKGBASE%|${_pkgbase}|g" ../linux.preset |
install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${_pkgbase}.preset"
}
package_linux-aarch64-flippy-bin-headers() {
pkgdesc="Header files and scripts for building modules for linux kernel - ${_desc}"
provides=(
"${_pkgbase}-headers=${pkgver}"
)
conflicts=(
"${_pkgbase}-headers"
)
install -d -m 755 "${pkgdir}/usr/lib/modules/${_pkgver_uname}/build"
tar -C "${pkgdir}/usr/lib/modules/${_pkgver_uname}/build" -xvzf "${srcdir}/header-${_pkgver_uname}.tar.gz"
install -d -m 755 "${pkgdir}/usr/src"
ln -sf "../lib/modules/${_pkgver_uname}/build" "${pkgdir}/usr/src/${_pkgbase}"
}
_dtb_common_provides="${_dtb_common_pkg}=${pkgver}"
package_linux-aarch64-flippy-bin-dtb-allwinner() {
pkgdesc="DTB files for Allwinner SoCs for flippy's AArch64 kernel"
provides=(
"${_dtb_common_provides}"
"${_pkgbase}-dtb-allwinner=${pkgver}"
)
conflicts=(
"${_pkgbase}-dtb-allwinner"
)
install -d -m 755 "${pkgdir}/boot/dtbs/${_pkgbase}/allwinner"
tar -C "${pkgdir}/boot/dtbs/${_pkgbase}/allwinner" -xvzf "${srcdir}/dtb-allwinner-${_pkgver_uname}.tar.gz"
}
package_linux-aarch64-flippy-bin-dtb-amlogic() {
pkgdesc="DTB files for Amlogic SoCs for flippy's AArch64 kernel"
provides=(
"${_dtb_common_provides}"
"${_pkgbase}-dtb-amlogic=${pkgver}"
)
conflicts=(
"${_pkgbase}-dtb-amlogic"
)
install -d -m 755 "${pkgdir}/boot/dtbs/${_pkgbase}/amlogic"
tar -C "${pkgdir}/boot/dtbs/${_pkgbase}/amlogic" -xvzf "${srcdir}/dtb-amlogic-${_pkgver_uname}.tar.gz"
}
package_linux-aarch64-flippy-bin-dtb-rockchip() {
pkgdesc="DTB files for Rockchip SoCs for flippy's AArch64 kernel"
provides=(
"${_dtb_common_provides}"
"${_pkgbase}-dtb-rockchip=${pkgver}"
)
conflicts=(
"${_pkgbase}-dtb-rockchip"
)
install -d -m 755 "${pkgdir}/boot/dtbs/${_pkgbase}/rockchip"
tar -C "${pkgdir}/boot/dtbs/${_pkgbase}/rockchip" -xvzf "${srcdir}/dtb-rockchip-${_pkgver_uname}.tar.gz"
}
|