Compare commits

...
Author SHA1 Message Date
Bart Ribbers 9156973e13 Attempt to integrate with lightdm and elogind 2019-08-19 15:33:33 +02:00
Luca Weiss 3d1fd823a1 unity8/ubuntu-themes: new aport 2019-08-19 15:02:42 +02:00
Luca Weiss ec8efa4bb4 main/postmarketos-ui-unity8: new aport 2019-08-19 15:02:24 +02:00
Dolphin von Chips 1c930cd0d3 main/cage: new aport (!554)
A Wayland kiosk. Works in Wayland (tested in weston), X11 (tested in
i3wm) and tty. Works with both dri-virtio and dri-swrast, but I won't
recommend you running with swrast because it's veeeeery slow.

[ci:skip-build]: already built successfully in CI
2019-08-17 13:43:23 +02:00
Dzmitry Sankouski 4c48457589 samsung-a5y17lte: kconfig: add muic debug option (!556)
Some Samsung muic's have debug possibility, but seems kernel config
option for that was deleted. Muic debug can be useful for attaching UART
cable to phone.

[ci:skip-build]: already built successfully in CI
2019-08-17 12:28:01 +02:00
Oliver Smith 6afffe73e1 cross/musl-*: upgrade to 1.1.23-r3 2019-08-17 09:34:32 +02:00
dzmitry de80777e1a samsung-a5y17lte: add universal7880 firmware. (!544)
Firmware for Exynos 7880 SOC from https://github.com/TheMuppets
It is needed to enable wifi, and possibly other hardware. All of firmware found on Muppets has been packaged.
Also contains wlan module configuration.
2019-08-15 18:08:29 +02:00
Luca Weiss dfdba5b4a7 main/reboot-mode: Fix printing of error (!551)
Previously, running reboot-mode as an unprivileged user resulted in

    Error: No error information

without a newline at the end. According to SYSCALL(2), the return value
of -1 indicated an error, but the actual error code is stored in errno.
2019-08-10 14:41:06 +02:00
Danct12 9d6a3540ad device-pine-pinetab: change compose key to meta on pinetab keyboard (!552)
Signed-off-by: Danct12 <danct12@disroot.org>
2019-08-10 14:02:11 +02:00
Danct12 370a9fbbb1 device-pine-pinetab: rotate framebuffer console (!550)
[ci:skip-build] because kernel changes

Signed-off-by: Danct12 <danct12@disroot.org>
2019-08-10 13:19:48 +02:00
lambdadroid 68be470893 main/postmarketos-mkinitfs: Do not forcefully include DRM in initfs (!548)
The DRM module itself can not do anything without a DRM driver.
It just takes up precious space (about ~5 MB for aarch64)
on the boot partition.

Devices that do include the appropriate DRM driver via
deviceinfo_modules_initfs will automatically pull in
"drm" and "drm_kms_helper" as dependencies, if needed.
So there is no need to depend on it explicitly.
2019-08-06 12:51:38 +02:00
Luca Weiss c2444a0870 main/postmarketos-mkinitfs: Fix spaces->tabs (!536)
[ci:skip-vercheck]
2019-08-06 12:37:12 +02:00
Luca Weiss 8f39bfd95c device/*: Adjust for non-modified dtb filename (!536) 2019-08-06 12:37:12 +02:00
Luca Weiss ed182b60ff main/postmarketos-mkinitfs: Use the original filename for the dtb (!536) 2019-08-06 12:37:12 +02:00
Oliver Smith bfac093092 cross/musl-*: upgrade to 1.1.23-r2 2019-08-06 12:36:15 +02:00
Daniele Debernardi e4e38c2001 main/postmarketos-mkinitfs: add deviceinfo_framebuffer_landscape (!546)
Use deviceinfo_framebuffer_landscape during splash screen generation.
Also add the postmarketos-splash arguments variable to the computation
of the hash for the cache.

Adjust device-pine-pinetab to use the new variable, and therefore rotate
its splash screen.

[ci:skip-build]: already built successfully in CI
2019-08-06 12:00:31 +02:00
Oliver Smith 29e53f44ee temp/{networkmanager,wpa_supplicant}: pkgrel bump
Increase pkgrels, so the resulting versions are higher than the aports
in Alpine. Seems like this was done in the upstream PR initially, but
then got lost during rebase.
2019-08-06 11:56:21 +02:00
Oliver Smith 2ac369ed8f temp/{networkmanager,wpa_supplicant}: new aports (!547)
Fork from Alpine to apply Martijn's patch:
https://github.com/alpinelinux/aports/pull/9894

"This makes wpa_supplicant run in dbus mode if no config file has been
created for it, fixing the networkmanager integration. This config has
been used for a long time in postmarketOS and works fine.

It also removes the iwd dependency from networkmanager again so
wpa_supplicant is used because iwd doesn't support as many chipsets as
wpa_supplicant and it doesn't run on older kernels."

[ci:skip-build]: already built successfully in CI for x86_64, I've
                 tested that it builds for armhf and aarch64 too.
2019-08-06 11:27:35 +02:00
Tito Ragusa bca4710967 firmware-oppo-find-7a: Fix paths of some blobs and whitespace changes (!540) 2019-08-03 03:52:05 +02:00
Luca Weiss ba4caadf68 modem/ofono: use pkgver=9999 (!537)
[ci:skip-build]: already built succcessfully in CI
2019-08-03 03:16:03 +02:00
Luca Weiss fef416f198 pine-pinetab: new device (Pine PineTab) (!528)
Thanks to Martijn Braam for additional patches that were squashed into
this one.

[ci:skip-build]: won't finish in time
2019-08-03 02:27:39 +02:00
Danct12 d2492564c4 main/postmarketos-ui-sway: remove mesa-dri-swrast (!539)
Signed-off-by: Danct12 <danct12@disroot.org>
2019-08-03 02:08:57 +02:00
Dzmitry Sankouski 1c335b552e samsung-a5y17lte: new device (Samsung A5 2017) (!510)
[ci:skip-build]: already built successfully in CI.
2019-08-03 00:58:08 +02:00
Joey Hewitt 212b3c8643 samsung-i9195: fix red screen (!535)
[ci:skip-build]: already built successfully in CI
2019-08-02 23:03:41 +02:00
Daniele Debernardi e259e5f420 device-nokia-n900: various improvements (!534)
- rename 'ch-de' keymap to 'ch' as in X keyboard config file
- add PMOS_NO_OUTPUT_REDIRECT to kernel cmdline (fixes debug-shell)
- add all keymap files in initramfs
- load default us keymap in initramfs
2019-07-31 01:25:27 +02:00
72 changed files with 6631 additions and 1007 deletions

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
pkgname="musl-aarch64"
pkgver="1.1.23"
pkgrel=1
pkgrel=3
arch="armhf armv7 x86_64 x86"
subpackages="musl-dev-aarch64:package_dev"
@@ -50,5 +50,5 @@ package_dev() {
done
}
sha512sums="ec8364a2ac7e8fbf028c0a2b9a8907ead95c27c88ec615ef6b8f1f5822e82bfc913e49b78b4910e369153b7954b5376a20fd557352e1a59989cd93bf160a6c7c musl-1.1.23-r1-aarch64.apk
9cdf37ae3bbb1ff7fa6f36ad0f5d7142fadc20abc2bf1c29d6567ec67ea029c1c98cb8440056ff2edf29f4397ff1018f3ad83f9e9d4a85bea56f4b9d0bbd6833 musl-dev-1.1.23-r1-aarch64.apk"
sha512sums="ff752f43d0ae4e45aee7dbbdc518ae150aa1bff9fdc7318c589c2c2ac7dbd4b95ac957abe9a657b2673089632cbd9aacb1dfe74d851c0f666564b4a082999e80 musl-1.1.23-r3-aarch64.apk
0be9c35ef7e6bf9130e2a8e16dde930ca1273cf4eb353d51aa7ea62e1cb6dc683952e2bc08d7d85bf706cb48af926f9b8b4abb83cc8bd676157bfa5617d3ae5b musl-dev-1.1.23-r3-aarch64.apk"
+3 -3
View File
@@ -3,7 +3,7 @@
pkgname="musl-armhf"
pkgver="1.1.23"
pkgrel=1
pkgrel=3
arch="armv7 aarch64 x86_64 x86"
subpackages="musl-dev-armhf:package_dev"
@@ -50,5 +50,5 @@ package_dev() {
done
}
sha512sums="95d94e2d09309af43e47222880c16c3dabbb0baa0977ce38f4e3019b9570c26bca486fa03567d8d6111944ebfd6549b8d9ede63d9822b492a79d97f6f65670cd musl-1.1.23-r1-armhf.apk
c2af3b01af2279565226cbc372056befb90f2405da614855ec73b78901e538a1d1c587ece7146ebe92d331234d23a60f6a10597ebf191d01d5cc4bfb6ac6485e musl-dev-1.1.23-r1-armhf.apk"
sha512sums="617b4d47ed53d005c9bb56f4eda6706cb36a52f4b6a640515994d66b7d90a47622a9509a27573036978f18c4633ae0dc465743bad48b0bbad525b38d7db0ba3f musl-1.1.23-r3-armhf.apk
fc577317b60050d6143cae33f8b1d519af0433b9d8820fa4f49bbf402604a522fe43acefeb3a11cb19f7c39e7c95721a242cf573025e5007909c43cc5e59b128 musl-dev-1.1.23-r3-armhf.apk"
+3 -3
View File
@@ -3,7 +3,7 @@
pkgname="musl-armv7"
pkgver="1.1.23"
pkgrel=1
pkgrel=3
arch="armhf aarch64 x86_64 x86"
subpackages="musl-dev-armv7:package_dev"
@@ -50,5 +50,5 @@ package_dev() {
done
}
sha512sums="a71902273d6df46d6b049702128d252d173e41512682a6756700c2c38698b764bf4024f2244855493082478d3b4d58509584a65deca6861b2aa64e78725d0a67 musl-1.1.23-r1-armv7.apk
02c74a46b6021c21b0d71efe1bd3fa12aa28c4d0c7f9b57d1793170616c567e5dbb80c39fa120d218af1825a568a0af819ab62460f178c6a78ba1b4239fb844f musl-dev-1.1.23-r1-armv7.apk"
sha512sums="65da56f724519ea26ac380dbdc850de03925aeeaae04b5a7d45dc37fc5a71c26110d5fa865f2bd1589617034aafe2fe6649c7502eb9b27a94741c6ffe335adac musl-1.1.23-r3-armv7.apk
3bab66f79b3210cfa55af1cfc733b2dda37c594f159cfe0b27f1aaa0780480bc2dff593f946ef98a6ed118769635815fd35a8f623f3c569975892f3de8e49d7c musl-dev-1.1.23-r3-armv7.apk"
@@ -0,0 +1,3 @@
/usr/share/bkeymaps/us/rx51_us.bmap.gz
/usr/share/bkeymaps/ch/rx51_ch.bmap.gz
/usr/share/bkeymaps/it/rx51_it.bmap.gz
@@ -0,0 +1,4 @@
#!/bin/sh
echo "Loading keymap..."
gunzip -c /usr/share/bkeymaps/us/rx51_us.bmap.gz | loadkmap
+18 -10
View File
@@ -1,6 +1,6 @@
pkgname=device-nokia-n900
pkgver=4
pkgrel=6
pkgrel=7
pkgdesc="Nokia N900"
url="https://postmarketos.org"
arch="armv7"
@@ -23,7 +23,7 @@ source="
acpi_handler.sh
acpi.map
keymaps/rx51_us.map
keymaps/rx51_ch-de.map
keymaps/rx51_ch.map
keymaps/rx51_it.map
keymaps/40-xkb.conf
pointercal
@@ -36,6 +36,8 @@ source="
i3wm/protip_shell.sh
xorg.conf
10-noroot-suspend
10-initfs-keymap.files
10-initfs-keymap.sh
"
options="!check !archcheck"
@@ -44,8 +46,8 @@ build() {
mkdir "$srcdir"/keymaps
loadkeys -b "$srcdir"/rx51_us.map > "$srcdir"/keymaps/rx51_us.bmap
gzip "$srcdir"/keymaps/rx51_us.bmap
loadkeys -b "$srcdir"/rx51_ch-de.map > "$srcdir"/keymaps/rx51_ch-de.bmap
gzip "$srcdir"/keymaps/rx51_ch-de.bmap
loadkeys -b "$srcdir"/rx51_ch.map > "$srcdir"/keymaps/rx51_ch.bmap
gzip "$srcdir"/keymaps/rx51_ch.bmap
loadkeys -b "$srcdir"/rx51_it.map > "$srcdir"/keymaps/rx51_it.bmap
gzip "$srcdir"/keymaps/rx51_it.bmap
return 0
@@ -62,6 +64,10 @@ package() {
"$pkgdir"/etc/pointercal
install -D -m644 "$srcdir"/asound.state \
"$pkgdir"/var/lib/alsa/asound.state
install -Dm644 "$srcdir"/10-initfs-keymap.files \
"$pkgdir"/etc/postmarketos-mkinitfs/files/10-initfs-keymap.files
install -Dm644 "$srcdir"/10-initfs-keymap.sh \
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/10-initfs-keymap.sh
# Udev rules
install -D -m644 "$srcdir"/90-touchscreen-dev.rules \
@@ -79,8 +85,8 @@ package() {
# Keymap
install -D -m644 "$srcdir"/keymaps/rx51_us.bmap.gz \
"$pkgdir"/usr/share/bkeymaps/us/rx51_us.bmap.gz
install -D -m644 "$srcdir"/keymaps/rx51_ch-de.bmap.gz \
"$pkgdir"/usr/share/bkeymaps/ch/rx51_ch-de.bmap.gz
install -D -m644 "$srcdir"/keymaps/rx51_ch.bmap.gz \
"$pkgdir"/usr/share/bkeymaps/ch/rx51_ch.bmap.gz
install -D -m644 "$srcdir"/keymaps/rx51_it.bmap.gz \
"$pkgdir"/usr/share/bkeymaps/it/rx51_it.bmap.gz
}
@@ -122,15 +128,15 @@ nonfree_firmware() {
mkdir "$subpkgdir"
}
sha512sums="8c5dc7bb9c3d5c8b1128689493789200f4e3eb434ef9827eca3be306109f5853ebde8bd6730ae55c6075613ec430c2fc10f3f3f565a02b5058fc00882ebc2502 deviceinfo
8f5b68b86f5345698114a2d70fd174699e5729f6c157659e4e57bef1dcab8c1209c13b30df6f5c2e8f31fee077039ffbc7817ca201f0745467b693e7550eaf6b uboot-script.cmd
sha512sums="36bb56878b94eebd21313aba0357365e1026b2264d2a0e02473e3caad65eff6b5e1ac3dc5bf19b8d7c8762bff9dad32fdf3b7f9dfc642d5a5bc2607e4b92fca3 deviceinfo
1558d02269b011e42e1d3969215b9dbd73658ffbf6ddb38c05f55915c0ff890306a2f56bb8155c825a430cad1e98f887475a40d9c2ae40b1892f964e1d395843 uboot-script.cmd
3d55e34b95791636e44a5f41754f3d0de039dbba41f7a556d43a95c9e64afcfa930046b4b96b40020b6f196096ffba93514682927e32fa4488686fdd19c6da5a backlight-enable.sh
c6012aef28b096141b924fced226ec99fb93eb53b69c064a8887d8fecdf8dc08a3ba3db399e18d88374c6ef4c59013a30699c7e4d76e5cb771040582573a0527 90-touchscreen-dev.rules
9e72035c88632d12895534e5aa5746f2c130c7dcdafa8702748d62b71ed0e1b5911b6e1f07f9b9e39b6072bbb662f66aead585baa1dcacb7d8c8953ca89b6762 10-nokia-modem.rules
df5dcae9a32d04ba2fed8b4dbb8722f8d56d063a288dfbaeca37806bdbb8ba4de639b392859b9f24040a1032456d5dcd754f51314e3ab66515b91ae1e03c93a7 acpi_handler.sh
7761aec6e6e219245b006e7bdc1d19812e9c5915cf3e64bb3dd46bb4b5570c1715650b53a1fc1007cb814076b5d81be0a66ba7ebf06d9a1fa4e364725c3ee633 acpi.map
c9ff8b5968fe94007e1139db5ae76f3ee6c214356bff297b9672276c6adb332ba2342b6ca54cf7992d6556f3c68a13ef49ae5e61abe86154935514034170e228 rx51_us.map
dc585e11bf4e06e36c5c62bcc024eaacecc30437d9da5257df14be05e247a2f2bc208874be3058edc6f87cc2877da2ecafd2f627d9b465d4fd24475fc21fdc71 rx51_ch-de.map
dc585e11bf4e06e36c5c62bcc024eaacecc30437d9da5257df14be05e247a2f2bc208874be3058edc6f87cc2877da2ecafd2f627d9b465d4fd24475fc21fdc71 rx51_ch.map
082a5166e38296b097e873b0b4aeaf007e594d3bf4470c74e91ee3efedcf28ad25cd55c23dd63e460339898ae08e77e111b0e1092fa5e661db90bb40732103a1 rx51_it.map
181187db6d88b872233f594759373f32fd08065ee340b60f0c3ff06396d99f4b1250192d70a054fcc9e51e067f6cc063c62b7d8dfff3427b292f1d0c766db206 40-xkb.conf
143c21f0b18a016d37cb44178e9daea09f128a90769b48353c03c3f245cb9b1f7e773b9ccee084973fc78ddd7a18c2642e54888a85bda7c7daecddc9a8c62eff pointercal
@@ -142,4 +148,6 @@ e2c6d818c61398af56fd2245639ecb0d528a7ec78951eb3ab1745f62f118884a09eb96b382c50c2f
3bed8554400d6bbebf7e61b14f347a0f3e24b29be296c56fc829ed655cf67fa547c09bb715589b716d6c3f04492e9f3a12473dce6c7151bc15562b9d102bac2f i3status.conf
0b80af9fd1f36e6bc06bdfdf48352897234ac7457210649016665da8570a5a64b8a0841b4fbeb64fd7054a5246a64718cf4412f8a53024ce39b28a80984972d8 protip_shell.sh
a91f98daa60efa2beb2ff6b405097f92edca5f1bbb9e7675499139be52ca2570712f8f06f9032ef29f636f99c8f8da8b992f746eab6424aac04260c16158bcc2 xorg.conf
38ecdf876b5aa9df2e5ea61c7ebb6f9ca871bdf433029808d028d563dfd740232b3dc21dba098a7622453212af1272e2e782be861b4a96a49fd475a618442d45 10-noroot-suspend"
38ecdf876b5aa9df2e5ea61c7ebb6f9ca871bdf433029808d028d563dfd740232b3dc21dba098a7622453212af1272e2e782be861b4a96a49fd475a618442d45 10-noroot-suspend
ae5c4c2452d8da66174d4eef9644796b29b0188ad683a6516be3710e0893db5447583f8b46ec9b76144e030c1ce4d9c316542af25b9369d9f27b8c026f6e0fe1 10-initfs-keymap.files
4656d3b3ced0a86e2d6315c89322899f646a689e9cb64609aa8ad5a676b23d93706d8a37f3be6f6b12c6b1e8501b7d26ecafecf27322333850513a6805c61910 10-initfs-keymap.sh"
+1 -1
View File
@@ -7,7 +7,7 @@ deviceinfo_manufacturer="Nokia"
deviceinfo_codename="nokia-n900"
deviceinfo_date=""
deviceinfo_keyboard="true"
deviceinfo_keymaps="us/rx51_us ch/rx51_ch-de it/rx51_it"
deviceinfo_keymaps="us/rx51_us ch/rx51_ch it/rx51_it"
deviceinfo_nonfree="????"
deviceinfo_dtb="omap3-n900"
deviceinfo_append_dtb="true"
+1 -1
View File
@@ -2,7 +2,7 @@ setenv mmcnum 0
setenv mmcpart 1
setenv mmctype ext2
setenv setup_omap_atag 1
setenv bootargs init=/init.sh rw console=tty0 console=tty02
setenv bootargs init=/init.sh rw console=tty0 console=tty02 PMOS_NO_OUTPUT_REDIRECT
setenv mmckernfile /uImage-postmarketos-stable
setenv mmcinitrdfile /uInitrd-postmarketos-stable
setenv mmcscriptfile
+2 -2
View File
@@ -2,7 +2,7 @@
pkgname="device-pine-a64lts"
pkgdesc="PINE A64-LTS"
pkgver=0.2
pkgrel=4
pkgrel=5
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -33,4 +33,4 @@ nonfree_firmware() {
}
sha512sums="b550ace9ce15ad574d011d1e966bd040a93a8bf26980b61928059d6328f1b4b7ef7d12e90e6ac78c7b6e4b99c4924b0d49f3b5813f9275c3982ff9df2be7ffef deviceinfo
222d0bdf3c363c173363e4c86f2681648e13c257e177de2df79cdc02ec4de327ce3919d2905b58d1c868c2fc9c95c60d67656da2a0a2a5d6c5c16cb2b3e7cc19 uboot-script.cmd"
e4f61a6f6633cc5f669dba16746047e8880ab0b1d6b7b99c6efbdb0b5d5797d18193d26c470cdf05522ea44cedeffb7a57caca97bf8200054fb7d9bad795fe99 uboot-script.cmd"
+1 -1
View File
@@ -3,7 +3,7 @@ setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_su
printenv
echo Loading DTB
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} dtb-postmarketos-allwinner.dtb
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} sun50i-a64-pine64-lts.dtb
echo Loading Initramfs
load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd-postmarketos-allwinner
+2 -2
View File
@@ -2,7 +2,7 @@
pkgname="device-pine-dontbeevil"
pkgdesc="PINE64 PinePhone Don't be evil devkit"
pkgver=0.1
pkgrel=8
pkgrel=9
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -73,7 +73,7 @@ kernel_longts() {
}
sha512sums="3e903f578a5112ec171e09e13e331345f0bd8fee935d6658a48cd2d369085c909106329fc103678961189486956aed97da9ff0b3be59f587f773f57d51f2d1bd deviceinfo
2aabfeff137e6ecbbb2cf9353d6ae69a0c4fe3f75064164c5e9edde750b035b9d7ab9c10000bb93d1a71cc9b357d469c86d7b9b3ffa0466da8ee229ac59e6c56 uboot-script.cmd
cfed1b8d3e71df799d2b11f67a80b70e6953b10ca1ee8a1c4d5d41c83ef7738a60ce963d6efe9037e99d261bcd08d3e8222da557516d9cefe10994349271d7a7 uboot-script.cmd
c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf
aa11864b9960e94e13b1467e09d8eb528e3d3652bf1fb251c7a040f4d44270403072db8aa906405d4c81fa9d6043fafa8d9ccd1f97031fd96d0dcacc38da8f84 start_weston.sh"
@@ -3,7 +3,7 @@ setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_su
printenv
echo Loading DTB
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} dtb-postmarketos-allwinner.dtb
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} sun50i-a64-dontbeevil.dtb
echo Loading Initramfs
load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd-postmarketos-allwinner
@@ -0,0 +1,2 @@
evdev:input:b0003v17EFp6018*
KEYBOARD_KEY_70065=leftmeta
+58
View File
@@ -0,0 +1,58 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-pine-pinetab"
pkgdesc="Pine64 Pinetab"
pkgver=0.1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-allwinner u-boot-pine64 uboot-tools mesa-git mesa-git-glapi mesa-git-gl mesa-git-egl mesa-git-dri-lima mesa-git-dri-kmsro mesa-git-gbm mesa-git-gles"
makedepends="devicepkg-dev"
subpackages="$pkgname-sway"
install="$pkgname.post-install"
source="
deviceinfo
uboot-script.cmd
sway.conf
99-pinetab-keyboard.hwdb
"
build() {
devicepkg_build $startdir $pkgname
mkimage \
-A arm \
-O linux \
-T script \
-C none \
-a 0 \
-e 0 \
-n postmarketos \
-d "$srcdir"/uboot-script.cmd \
"$srcdir"/boot.scr
}
sway() {
install_if="$pkgname postmarketos-ui-sway"
depends="dmenu"
install -D -m644 "$srcdir"/sway.conf \
"$subpkgdir"/etc/sway/config.d/pinetab
}
package() {
devicepkg_package $startdir $pkgname
# U-Boot
install -Dm644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
# Fix for the meta key on v1 keyboard dock, probably not needed on newer revisions
install -Dm644 "$srcdir"/99-pinetab-keyboard.hwdb \
"$pkgdir"/etc/udev/hwdb.d/99-pinetab-keyboard.hwdb
}
sha512sums="78b3414f198f2efbfcb12d6240e26a34cd48f00f75a0469c57c372a84aaac75a8f5ddd23f8cb1c16b9a9de6b2a11a8f537a1cd486f75dfbce213541f6890211b deviceinfo
8f15bb62704ad5379c6f77c5ea766e69587a11829539cc339b486b72e248e04cc6202b505f12846f6537f259412f7749ce50d0b15227da182afe17fe7dd303e5 uboot-script.cmd
9e71c61bfa72b60e749c4dc04f17eb59d25de822765e81e65c937d6be5236d3951a652b69a1ab973abe6add9f34705be5dbaa98bbfa25daf7504dd50b28524c2 sway.conf
8d1ef04911f1cfa7eda8185f4f4d807af23105a7c8f23d8c18f02afeccd8ab124de70c2e2760c154a3128fe3793447039fb0abf37aa496f597d27051e275033e 99-pinetab-keyboard.hwdb"
@@ -0,0 +1,5 @@
#!/bin/sh
# We'll update the hwdb so that the meta key gets fixed
echo "UPDATING HWDB..."
udevadm hwdb --update
+27
View File
@@ -0,0 +1,27 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Pine64 Pinetab"
deviceinfo_manufacturer="Pine64"
deviceinfo_codename="pine-pinetab"
deviceinfo_date=""
deviceinfo_dtb="allwinner/sun50i-a64-pinetab"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1280"
deviceinfo_screen_height="800"
deviceinfo_dev_touchscreen=""
deviceinfo_dev_touchscreen_calibration=""
deviceinfo_dev_keyboard=""
deviceinfo_framebuffer_landscape="true"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_generate_legacy_uboot_initfs="true"
deviceinfo_sd_embed_firmware="u-boot/pine64-lts/u-boot-sunxi-with-spl.bin:8"
+6
View File
@@ -0,0 +1,6 @@
# Rotate the display so it's usable with the keyboard
output DSI-1 transform 90
# Link the touchscreen to the display
input "1046:9271:Goodix_Capacitive_TouchScreen" map_to_output DSI-1
@@ -0,0 +1,19 @@
setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M fbcon=rotate:1 PMOS_NO_OUTPUT_REDIRECT
printenv
echo Loading DTB
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} sun50i-a64-pinetab.dtb
echo Loading Initramfs
load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd-postmarketos-allwinner
echo Loading Kernel
load mmc ${mmc_bootdev}:1 ${kernel_addr_r} vmlinuz-postmarketos-allwinner
echo Resizing FDT
fdt addr ${fdt_addr_r}
fdt resize
echo Booting kernel
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
+2 -2
View File
@@ -2,7 +2,7 @@
pkgname="device-purism-librem5dev"
pkgdesc="Purism Librem 5 Devkit"
pkgver=0.7
pkgrel=2
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -40,7 +40,7 @@ package() {
}
sha512sums="d2c5ab7b094092f4e3280bb27b8a03b339cd882a41951e9ea968d4206decbc3cc87c3af62003839ff20097b3ef48156b25d7f37cabce24d16ac4d1c8ce073deb deviceinfo
e52cbb518677070d5933d0d1415916b9a570d80f270edab4f14bd193716fd064b389ff1fed5db7efd9966ea953569a7922c5bee6f15405eaa93838e1c01ae2aa uboot-script.cmd
b6622d11b3975e004d4a7baed52d56bcc9831d9b66f26a1174b08d2c10d53d9a1c9ad45d1938e20579c88741b31512d48cf30282cf8539162f1ab49d5342596c uboot-script.cmd
d10531ad6646ad6cfaf8ee1b0cc38f4e5e2eb39599251b75f25e954f1105761d5480d92cbe06ad52560207b883439071db89b19babf046a810360bd07c52c655 modprobe.d_rsi.conf
5fdf45859f2bb154bcfe7c7341de4d5b239ef43d3f865e30456af073a8ee9d6682515c7e1dd52ddbe3969669d60689ba93c08ead32aadcfb164ff72a02b2e1a4 00-mesa.sh
aeb04c73359889444e3d7da3d6c935a7899e1c190542dfc0224ef0c728a914f61074808d3df920daf02671292ed43eb43a03525ac676f34185cdbb73b39442e1 flash_script.lst"
@@ -4,7 +4,7 @@ setenv mmcpart 1
printenv
echo Loading DTB
ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr} dtb-purism-librem5dev.dtb
ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr} librem5-evk.dtb
echo Loading Initramfs
ext2load mmc ${mmcdev}:${mmcpart} ${initrd_addr} uInitrd-purism-librem5dev
+33
View File
@@ -0,0 +1,33 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-samsung-a5y17lte"
pkgdesc="Samsung Galaxy A5 (2017)"
pkgver=0.1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-samsung-a5y17lte mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/initfs-hook.sh \
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
}
nonfree_firmware() {
pkgdesc="Non-free firmware for the Samsung Galaxy A5 2017"
depends="firmware-samsung-universal7880"
mkdir "$subpkgdir"
}
sha512sums="6e067f910b89948c5eec9d9b2df677c085f6f322a111ee98731951b9a80e153a6ea12d8f9169919dbda03b7362ac191a78240d4b5fe39bcb13efc7fa23efa0eb deviceinfo
92effac4743fbcfc47461723eac7b088efb58574d76822293ba95d66edd4820886241173a84bed6a9095801d39311c29aeac409add53421bb2c5a6caf395226c initfs-hook.sh"
+35
View File
@@ -0,0 +1,35 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Samsung Galaxy A5 (2017)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-a5y17lte"
deviceinfo_date=""
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
deviceinfo_dev_touchscreen=""
deviceinfo_dev_touchscreen_calibration=""
deviceinfo_dev_keyboard=""
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_kernel_cmdline=""
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="true"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_heimdall_partition_kernel=""
deviceinfo_flash_heimdall_partition_system=""
@@ -0,0 +1,3 @@
# Blank and unblank
echo 1 > /sys/class/graphics/fb0/blank
echo 0 > /sys/class/graphics/fb0/blank
@@ -0,0 +1,44 @@
From 2e32a401ea5df22ab899f4da3e5e1b448b2df51a Mon Sep 17 00:00:00 2001
From: Alexey Min <alexey.min@gmail.com>
Date: Thu, 7 Mar 2019 17:25:48 +0300
Subject: [PATCH 5/6] usb_gadget: set random rndis host MAC address to prevent
zero address
This fixes zero host MAC:
rndis0: MAC f6:45:91:9b:4e:43
rndis0: HOST MAC 00:00:00:00:00:00
and allows devive to automatically obtain IP addrest on PC host side
zero MAC address prevented interface from autoconfiguring
---
drivers/usb/gadget/function/u_ether.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
index bf8b64d904c..9ce3ab6de34 100644
--- a/drivers/usb/gadget/function/u_ether.c
+++ b/drivers/usb/gadget/function/u_ether.c
@@ -1263,8 +1263,16 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN],
dev_warn(&g->dev,
"using random %s ethernet address\n", "self");
#ifdef CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE
- memcpy(dev->host_mac, ethaddr, ETH_ALEN);
- printk(KERN_DEBUG "usb: set unique host mac\n");
+ if ((ethaddr[0] == 0x00) && (ethaddr[1] == 0x00) &&
+ (ethaddr[2] == 0x00) && (ethaddr[3] == 0x00) &&
+ (ethaddr[4] == 0x00) && (ethaddr[5] == 0x00)) {
+ printk(KERN_DEBUG "%s: no unique host MAC was set, generate random\n", __func__);
+ /* we can use random_ether_addr() from include/linux/etherdevice.h */
+ random_ether_addr(ethaddr);
+ } else {
+ printk(KERN_DEBUG "%s: set unique host mac\n", __func__);
+ }
+ memcpy(dev->host_mac, ethaddr, ETH_ALEN);
#else
if (get_ether_addr(host_addr, dev->host_mac))
--
2.21.0
+80
View File
@@ -0,0 +1,80 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/lineage-a5y17lte_defconfig
pkgname="linux-samsung-a5y17lte"
pkgver=3.18.14
pkgrel=2
pkgdesc="Samsung Galaxy A5 (2017) kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="samsung-a5y17lte"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-exynos"
# Compiler: latest GCC from Alpine
HOSTCC="${CC:-gcc}"
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
# Source
_repository="android_kernel_samsung_universal7880"
_commit="9af43285ff43d74f3f40f910023e57dfad1c8e63"
_config="config-${_flavor}.${arch}"
source="
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/${_repository}/archive/${_commit}.tar.gz
$_config
fix_firmware_path.patch
gcc7-give-up-on-ilog2-const-optimizations.patch
gcc8-fix-put-user.patch
0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
disable_knox.patch
debug_muic.patch
"
builddir="$srcdir/${_repository}-${_commit}"
prepare() {
default_prepare
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
dtbTool-exynos --pagesize 2048 --platform 0x50a6 --subtype 0x217584da \
-o "arch/arm64/boot/dtb.img" $(find "arch/arm64/boot/dts/" -name *a5y17lte*.dtb)
}
package() {
# kernel.release
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
# zImage (find the right one)
cd "$builddir/arch/$_carch/boot"
_target="$pkgdir/boot/vmlinuz-$_flavor"
for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do
[ -e "$_zimg" ] || continue
msg "zImage found: $_zimg"
install -Dm644 "$_zimg" "$_target"
break
done
if ! [ -e "$_target" ]; then
error "Could not find zImage in $PWD!"
return 1
fi
# Master DTB (deviceinfo_bootimg_qcdt)
install -Dm644 "$builddir/arch/arm64/boot/dtb.img" \
"$pkgdir/boot/dt.img"
}
sha512sums="96794c6c5c91375a0110906c512644ccfb7c1d1f6e9275a0807e123bd8d02c93047856228298e38c9d24ddb663d58c33dbeaedb8f433cd54a07e4ae4e91ad243 linux-samsung-a5y17lte-9af43285ff43d74f3f40f910023e57dfad1c8e63.tar.gz
370d215158707ce674562a9d194c7827b1ba7adc808503ea60ace392a2bb3bf95e39828062947dd425a80041343cb12dd683e379dccbadfc88be94359065984b config-samsung-a5y17lte.aarch64
9e2fb4b559936fdf77634ed7b3b85b2431b79ae9304f58c97172ba933bbfa365291650b20ddce41993526e39ca866049b765f730690f446ef047d86873a5f710 fix_firmware_path.patch
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
b5f7aed0d4c78fcd9ea6f65e11606c4d33004b45eed39017baa8b0a78db801396aa04ba7cd3a4a669c23f878f5462ae1b5f753e0e26b65c9962fd1e98855e524 0007-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
0ed3a870c33728b5337261770e8e8ea3d4135235339407d7e4d070d2f6aef5a866ad2012451b75aeeb813bd7d514c959d49d2f31a93ce95c0dbfc03275328a33 disable_knox.patch
fefc6dde6c74201e2862b998a1e9a75cc0f71a7921383c99cf058f8fec53e278abb1cc40fc1fc6e532cf60e4a6670123129de60cc59e64057856769e1612edd1 debug_muic.patch"
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,199 @@
diff --git a/drivers/muic/Kconfig b/drivers/muic/Kconfig
index 66873fc853d..1741eee5a14 100755
--- a/drivers/muic/Kconfig
+++ b/drivers/muic/Kconfig
@@ -12,6 +12,13 @@ config USE_MUIC
If you say yes here you will get support for
the MUIC device driver.
+config DEBUG_MUIC
+ bool "Enable MUIC debug"
+ depends on SAMSUNG_MUIC
+ default n
+ help
+ If you say yes here you will get debug info from your muic.
+
config USE_SAFEOUT
bool "Using SAFEOUT device driver"
depends on I2C
diff --git a/drivers/muic/s2mm001.c b/drivers/muic/s2mm001.c
index 15107098f4b..cf43d5f8bfa 100755
--- a/drivers/muic/s2mm001.c
+++ b/drivers/muic/s2mm001.c
@@ -37,9 +37,9 @@
#include <linux/muic/muic_notifier.h>
#endif /* CONFIG_MUIC_NOTIFIER */
-#define DEBUG_MUIC
+#define CONFIG_DEBUG_MUIC
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
#define MAX_LOG 25
#define READ 0
@@ -164,7 +164,7 @@ static int s2mm001_i2c_read_byte(const struct i2c_client *client, u8 command)
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mm001_reg_log(command, ret, retry << 1 | READ);
#endif
return ret;
@@ -187,7 +187,7 @@ static int s2mm001_i2c_write_byte(const struct i2c_client *client,
ret = i2c_smbus_write_byte_data(client, command, value);
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mm001_reg_log(command, value, retry << 1 | WRITE);
#endif
return ret;
@@ -490,7 +490,7 @@ static ssize_t s2mm001_muic_show_usb_state(struct device *dev,
return 0;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static ssize_t s2mm001_muic_show_mansw1(struct device *dev,
struct device_attribute *attr,
char *buf)
@@ -729,7 +729,7 @@ static DEVICE_ATTR(uart_sel, 0664, s2mm001_muic_show_uart_sel,
static DEVICE_ATTR(usb_sel, 0664,
s2mm001_muic_show_usb_sel, s2mm001_muic_set_usb_sel);
static DEVICE_ATTR(adc, 0664, s2mm001_muic_show_adc, NULL);
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static DEVICE_ATTR(mansw1, 0664, s2mm001_muic_show_mansw1, NULL);
static DEVICE_ATTR(mansw2, 0664, s2mm001_muic_show_mansw2, NULL);
static DEVICE_ATTR(dump_registers, 0664, s2mm001_muic_show_registers, NULL);
@@ -755,7 +755,7 @@ static struct attribute *s2mm001_muic_attributes[] = {
&dev_attr_uart_sel.attr,
&dev_attr_usb_sel.attr,
&dev_attr_adc.attr,
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
&dev_attr_mansw1.attr,
&dev_attr_mansw2.attr,
&dev_attr_dump_registers.attr,
diff --git a/drivers/muic/s2mu004-muic.c b/drivers/muic/s2mu004-muic.c
index 577a3e87c76..1a4c98ff3c3 100755
--- a/drivers/muic/s2mu004-muic.c
+++ b/drivers/muic/s2mu004-muic.c
@@ -97,7 +97,7 @@ static int s2mu004_i2c_write_byte(struct i2c_client *client,
static bool s2mu004_get_ccic_cable_state(struct s2mu004_muic_data *muic_data);
#endif
-#if defined(DEBUG_MUIC)
+#if defined(CONFIG_DEBUG_MUIC)
#define MAX_LOG 25
#define READ 0
#define WRITE 1
@@ -186,7 +186,7 @@ static int s2mu004_i2c_read_byte(struct i2c_client *client, u8 command)
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mu004_reg_log(command, ret, retry << 1 | READ);
#endif
return ret;
@@ -211,7 +211,7 @@ static int s2mu004_i2c_write_byte(struct i2c_client *client,
ret = s2mu004_write_reg(client, command, value);
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mu004_reg_log(command, value, retry << 1 | WRITE);
#endif
return ret;
@@ -698,7 +698,7 @@ static ssize_t s2mu004_muic_show_usb_state(struct device *dev,
return 0;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static ssize_t s2mu004_muic_show_mansw(struct device *dev,
struct device_attribute *attr,
char *buf)
@@ -1159,7 +1159,7 @@ static ssize_t muic_store_afc_set_voltage(struct device *dev,
static DEVICE_ATTR(uart_en, 0664, s2mu004_muic_show_uart_en,
s2mu004_muic_set_uart_en);
static DEVICE_ATTR(adc, 0664, s2mu004_muic_show_adc, NULL);
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static DEVICE_ATTR(mansw, 0664, s2mu004_muic_show_mansw, NULL);
static DEVICE_ATTR(dump_registers, 0664, s2mu004_muic_show_registers, NULL);
static DEVICE_ATTR(int_status, 0664, s2mu004_muic_show_interrupt_status, NULL);
@@ -1192,7 +1192,7 @@ static DEVICE_ATTR(afc_set_voltage, 0220,
static struct attribute *s2mu004_muic_attributes[] = {
&dev_attr_uart_en.attr,
&dev_attr_adc.attr,
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
&dev_attr_mansw.attr,
&dev_attr_dump_registers.attr,
&dev_attr_int_status.attr,
diff --git a/drivers/muic/s2mu005-muic.c b/drivers/muic/s2mu005-muic.c
index c3b89b3612d..b53f54cd3d8 100755
--- a/drivers/muic/s2mu005-muic.c
+++ b/drivers/muic/s2mu005-muic.c
@@ -54,10 +54,10 @@ static void s2mu005_muic_handle_detach(struct s2mu005_muic_data *muic_data);
static int set_manual_sw(struct s2mu005_muic_data *muic_data, bool on);
/*
-#define DEBUG_MUIC
+#define CONFIG_DEBUG_MUIC
*/
-#if defined(DEBUG_MUIC)
+#if defined(CONFIG_DEBUG_MUIC)
#define MAX_LOG 25
#define READ 0
#define WRITE 1
@@ -150,7 +150,7 @@ static int s2mu005_i2c_read_byte(struct i2c_client *client, u8 command)
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mu005_reg_log(command, ret, retry << 1 | READ);
#endif
return ret;
@@ -175,7 +175,7 @@ static int s2mu005_i2c_write_byte(struct i2c_client *client,
ret = s2mu005_write_reg(client, command, value);
retry++;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
s2mu005_reg_log(command, value, retry << 1 | WRITE);
#endif
return ret;
@@ -463,7 +463,7 @@ static ssize_t s2mu005_muic_show_usb_state(struct device *dev,
return 0;
}
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static ssize_t s2mu005_muic_show_mansw(struct device *dev,
struct device_attribute *attr,
char *buf)
@@ -686,7 +686,7 @@ static ssize_t s2mu005_muic_set_apo_factory(struct device *dev,
static DEVICE_ATTR(uart_en, 0664, s2mu005_muic_show_uart_en,
s2mu005_muic_set_uart_en);
static DEVICE_ATTR(adc, 0664, s2mu005_muic_show_adc, NULL);
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
static DEVICE_ATTR(mansw, 0664, s2mu005_muic_show_mansw, NULL);
static DEVICE_ATTR(dump_registers, 0664, s2mu005_muic_show_registers, NULL);
static DEVICE_ATTR(int_status, 0664, s2mu005_muic_show_interrupt_status, NULL);
@@ -709,7 +709,7 @@ static DEVICE_ATTR(usb_en, 0664,
static struct attribute *s2mu005_muic_attributes[] = {
&dev_attr_uart_en.attr,
&dev_attr_adc.attr,
-#ifdef DEBUG_MUIC
+#ifdef CONFIG_DEBUG_MUIC
&dev_attr_mansw.attr,
&dev_attr_dump_registers.attr,
&dev_attr_int_status.attr,
@@ -0,0 +1,33 @@
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 79c35a5b276..726588bc180 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -420,18 +420,6 @@ out_rcu_unlock:
goto out;
}
-/* START_OF_KNOX_NPA */
-/** The function is used to check if the ncm feature is enabled or not;
- * if enabled then collect the socket meta-data information;
- * if enabled then it calls knox_collect_socket_data function in ncm.c to record all the socket data; **/
-static void knox_collect_metadata(struct socket *sock)
-{
- if (check_ncm_flag()) {
- knox_collect_socket_data(sock);
- }
-}
-/* END_OF_KNOX_NPA */
-
/*
* The peer socket should always be NULL (or else). When we call this
* function we are destroying the object and from then on nobody
@@ -463,9 +451,6 @@ int inet_release(struct socket *sock)
if (sock_flag(sk, SOCK_LINGER) &&
!(current->flags & PF_EXITING))
timeout = sk->sk_lingertime;
- /* START_OF_KNOX_NPA */
- knox_collect_metadata(sock);
- /* END_OF_KNOX_NPA */
sock->sk = NULL;
sk->sk_prot->close(sk, timeout);
}
@@ -0,0 +1,14 @@
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 68dba891b8e..dacb6c373b1 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -279,7 +279,8 @@ static const char * const fw_path[] = {
"/etc/firmware",
"/etc/firmware/wlan",
#endif /* CONFIG_QCOM_WIFI */
- "/lib/firmware"
+ "/lib/firmware",
+ "/lib/firmware/postmarketos"
};
/*
@@ -0,0 +1 @@
../../.shared-patches/linux/gcc7-give-up-on-ilog2-const-optimizations.patch
@@ -0,0 +1 @@
../../.shared-patches/linux/gcc8-fix-put-user.patch
@@ -0,0 +1,91 @@
From 79f928baf4e7b0fa8f36276b2f877da2d46a50d0 Mon Sep 17 00:00:00 2001
From: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Date: Mon, 11 Dec 2017 11:00:24 -0200
Subject: [PATCH] fix video argb setting
---
drivers/video/msm/msm_fb.c | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c
index 251a5cbb753d..dcd9262a88f4 100644
--- a/drivers/video/msm/msm_fb.c
+++ b/drivers/video/msm/msm_fb.c
@@ -1342,16 +1342,16 @@ static int msm_fb_register(struct msm_fb_data_type *mfd)
fix->xpanstep = 1;
fix->ypanstep = 1;
var->vmode = FB_VMODE_NONINTERLACED;
- var->blue.offset = 0;
- var->green.offset = 8;
- var->red.offset = 16;
+ var->blue.offset = 24;
+ var->green.offset = 16;
+ var->red.offset = 8;
var->blue.length = 8;
var->green.length = 8;
var->red.length = 8;
var->blue.msb_right = 0;
var->green.msb_right = 0;
var->red.msb_right = 0;
- var->transp.offset = 24;
+ var->transp.offset = 0;
var->transp.length = 8;
bpp = 4;
break;
@@ -1361,16 +1361,16 @@ static int msm_fb_register(struct msm_fb_data_type *mfd)
fix->xpanstep = 1;
fix->ypanstep = 1;
var->vmode = FB_VMODE_NONINTERLACED;
- var->blue.offset = 8;
- var->green.offset = 16;
- var->red.offset = 24;
+ var->blue.offset = 16;
+ var->green.offset = 8;
+ var->red.offset = 0;
var->blue.length = 8;
var->green.length = 8;
var->red.length = 8;
var->blue.msb_right = 0;
var->green.msb_right = 0;
var->red.msb_right = 0;
- var->transp.offset = 0;
+ var->transp.offset = 24;
var->transp.length = 8;
bpp = 4;
break;
@@ -2260,15 +2260,15 @@ static int msm_fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
/* Figure out if the user meant RGBA or ARGB
and verify the position of the RGB components */
- if (var->transp.offset == 24) {
- if ((var->blue.offset != 0) ||
- (var->green.offset != 8) ||
- (var->red.offset != 16))
- return -EINVAL;
- } else if (var->transp.offset == 0) {
- if ((var->blue.offset != 8) ||
+ if (var->transp.offset == 0) {
+ if ((var->blue.offset != 24) ||
(var->green.offset != 16) ||
- (var->red.offset != 24))
+ (var->red.offset != 8))
+ return -EINVAL;
+ } else if (var->transp.offset == 24) {
+ if ((var->blue.offset != 16) ||
+ (var->green.offset != 8) ||
+ (var->red.offset != 0))
return -EINVAL;
} else
return -EINVAL;
@@ -2365,7 +2365,7 @@ static int msm_fb_set_par(struct fb_info *info)
break;
case 32:
- if (var->transp.offset == 24)
+ if (var->transp.offset == 0)
mfd->fb_imgType = MDP_ARGB_8888;
else
mfd->fb_imgType = MDP_RGBA_8888;
--
2.14.1
+4 -2
View File
@@ -2,7 +2,7 @@
pkgname="linux-samsung-i9195"
pkgver=3.4.113
pkgrel=3
pkgrel=4
pkgdesc="Samsung Samsung Galaxy S4 Mini kernel fork"
arch="armhf"
_carch="arm"
@@ -31,6 +31,7 @@ source="
compiler-gcc6.h
01_msm-fix-perf_trace_counters.patch
02_gpu-msm-fix-gcc5-compile.patch
03_fix-video-argb-setting.patch
"
builddir="$srcdir/${_repository}-${_commit}"
@@ -81,4 +82,5 @@ sha512sums="7ce3621f50e0c615795eed17fa5178ba2d2c3165b9267f80f088305f8cb591c70412
46478b5ba446d7b31c0dc2cb78740880c528c7638ea2290fba229503bae482a5c368f177a89991439807259b1f9406a16d5613fad8d1e6ce58efc7b951f93e1b config-samsung-i9195.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
f85ced49ee2f2461adea68dac0a10452aa809a7d41d869092d94eb085344919a9a385dec0c48011f4601ca4f441700f7fe49075c7eca4fb2d66b01f7d413ccb7 01_msm-fix-perf_trace_counters.patch
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch"
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch
e3083c260ed9c4fc0d83f43106700b6173876dbfae072f6e6696ac6785a4dc17771fbcb3e21601e04ed29a11bf0f7a2a09ad549375e0c34cea245c7f2e2bcbbd 03_fix-video-argb-setting.patch"
+7 -4
View File
@@ -1,6 +1,6 @@
pkgname=firmware-oppo-find-7a
pkgver=0.1
pkgrel=2
pkgrel=3
pkgdesc="Firmware for Oppo Find 7a"
url="https://postmarketos.org/"
arch="armv7"
@@ -136,12 +136,12 @@ check() {
}
package() {
mkdir -p "$pkgdir/lib/firmware/qcom"
mkdir -p "$pkgdir/lib/firmware"
for _i in $_files1; do
install -Dm644 "$srcdir/$pkgname-$_commit1-$_i" "$pkgdir/lib/firmware/qcom/$_i"
install -Dm644 "$srcdir/$pkgname-$_commit1-$_i" "$pkgdir/lib/firmware/$_i"
done
for _i in $_files2; do
install -Dm644 "$srcdir/$pkgname-$_commit2-$_i" "$pkgdir/lib/firmware/$_i"
install -Dm644 "$srcdir/$pkgname-$_commit2-$_i" "$pkgdir/lib/firmware/$_i"
done
mkdir -p "$pkgdir/lib/firmware/wlan/prima"
for _i in $_files3; do
@@ -156,6 +156,9 @@ package() {
install -Dm644 "$pkgname-keymaste.b02" "$pkgdir/lib/firmware/keymaster/keymaster.b02"
install -Dm644 "$pkgname-keymaste.b03" "$pkgdir/lib/firmware/keymaster/keymaster.b03"
install -Dm644 "$pkgname-keymaste.mdt" "$pkgdir/lib/firmware/keymaster/keymaster.mdt"
cd "$pkgdir/lib/firmware"
ln -s . qcom
}
@@ -0,0 +1,97 @@
pkgname=firmware-samsung-universal7880
pkgver=1
pkgrel=0
pkgdesc="Firmware for the Samsung devices on Exynos7880 SOC (a5y17lte, a7y17lte)"
url="https://github.com/TheMuppets/proprietary_vendor_samsung"
arch="noarch"
license="proprietary"
options="!check !archcheck"
_commit_device="8b6074d8db9095b6ba1b37a273a6d9e7e87711c3"
_repo_device="https://github.com/LineageOS/android_device_samsung_universal7880-common/raw/$_commit_device/configs/wifi"
_prefix_device=$pkgname-$_commit_device
_commit_muppets="385918d85eaf932918584600c621ab5d4b0a1b28"
_repo_muppets="https://github.com/TheMuppets/proprietary_vendor_samsung/raw/$_commit_muppets/universal7880-common/proprietary"
_prefix_muppets=$pkgname-$_commit_muppets
_files_muppets_etc="
bdwlan30.bin
bdwlan32.bin
Data.msc
nvm_tlv_1.3.bin
nvm_tlv_2.1.bin
nvm_tlv_3.0.bin
nvm_tlv_3.2.bin
nvm_tlv.bin
nvm_tlv_tf_1.1.bin
otp30.bin
qwlan30.bin
qwlan30_ibss.bin
rampatch_tlv_1.3.tlv
rampatch_tlv_2.1.tlv
rampatch_tlv_3.0.tlv
rampatch_tlv_3.2.tlv
rampatch_tlv.img
rampatch_tlv_tf_1.1.tlv
utf30.bin
utfbd30.bin
utfbd32.bin
"
_files_muppets_vendor="
fimc_is_lib.bin
mfc_fw.bin
setfile_3p8.bin
setfile_3p8_front.bin
"
source="$_prefix_device-qcom_cfg.ini::$_repo_device/qcom_cfg.ini"
source="$source $_prefix_muppets-sec_s3nrn81_firmware.bin::$_repo_muppets/vendor/firmware/nfc/sec_s3nrn81_firmware.bin"
for _file in $_files_muppets_etc; do
source="$source $_prefix_muppets-$_file::$_repo_muppets/etc/firmware/$_file"
done
for _file in $_files_muppets_vendor; do
source="$source $_prefix_muppets-$_file::$_repo_muppets/vendor/firmware/$_file"
done
package() {
local file
for file in $_files_muppets_etc $_files_muppets_vendor; do
install -Dm644 "$srcdir/$_prefix_muppets-$file" \
"$pkgdir/lib/firmware/postmarketos/$file"
done
install -Dm644 "$srcdir/$_prefix_device-qcom_cfg.ini" \
"$pkgdir/lib/firmware/postmarketos/wlan/qcom_cfg.ini"
install -Dm644 "$srcdir/$_prefix_muppets-sec_s3nrn81_firmware.bin" \
"$pkgdir/lib/firmware/postmarketos/nfc/sec_s3nrn81_firmware.bin"
}
sha512sums="bffb9705ad5271cbb5bc6fa971bf3e7f4784251ceefbe634a37794a8ce99c528b644006547a09ac6f4150ee03fa0f2d85aa1e7d4239e9e964eb45b1889005f05 firmware-samsung-universal7880-8b6074d8db9095b6ba1b37a273a6d9e7e87711c3-qcom_cfg.ini
9d139cb1e50c9557591b80d9dde97286059d13582eae4ff43ece32e5ee0d9fac7fd9991d79d44dff7924518c263970ab9443d24dc7d3ab1614e09acb0a6062c1 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-sec_s3nrn81_firmware.bin
de94887f8b4267dd0e6bcf3da8b4c459b82b0fbc1d8e25232b9c00af665cfe85e6eeb998bf7162a19dcf1cb88e05d8feed75fc1a81ec23123392cd1404062b18 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-bdwlan30.bin
063a6da1c99ccdb4a2f99976cd0f4783ad380e4dbb16c8b29fda201f5c64a33774c91cbeebe0916326e69027414185a35b28da24fe7bd3884fd282bf3763ff78 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-bdwlan32.bin
2c860c0f51d6a8bb71c6002fd1b8e1c1a1556089747dc397e480a5b091387bea4451db685379757b7928ea9ea8742b4abf7dc766fe6917c3ab89dd67fbc47e89 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-Data.msc
64a8c2d0e17b202cfb20e5fcf982e1d4b456cc3ad283d6a2b48c411d8fd5241adad491732944825c6c8c34476ca4009f949674187976dd367dc635d75b0f78ea firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv_1.3.bin
8b9e74b63ad5ec02a79bc106a3680f4f658ec023fb46950d829f3c7a94653a033b1eac8abdb273051c0b3e03266dc94d10835f3e547012579d27227a4ef4dbfd firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv_2.1.bin
1abc6d3446f3eaec3e49323a641717d8904e103e1e2a04f0248959dc8dbb511de7b9347fe266cfd1b526e0d08292fe4ffac6c894dc74bfd300a954e8310de7ee firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv_3.0.bin
89cbf5df94e1441b14927c83d373cd99c7fd171ab8ec6d0b32f4d516bffe4b4f55145e8fa702af1d7895514810f33345d1c084d9c290dea87bd5c3a3ad9f2075 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv_3.2.bin
c55779d41567a0aab43307e5d040c3f77c12ef160e4c7ae4f56710ad00fa3c52195f2f1648eee7cc76c1eb324b53bd3147b169c69f43b4a969219e3b7be6608c firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv.bin
562db4e69aa53720b3f9dea4fa6e44a141706345098898069ea5e72fb0e60942fec1b70157b37491e1701b76c97682b00f44786d065fa996d9d2199bf386cf22 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-nvm_tlv_tf_1.1.bin
efe30ad31c56edf900a3ee368bfc741f4ecc4c99320bd440bf12e3efab29b4da58b9dbdbe9e229f0779e86fd80a49f8ffad17feef4c92f9680c8685c55bd3c42 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-otp30.bin
b08c76fe4cb88fefa83b2f93c3fc076cfbbbf2315e0321f170929da57a5fa80929ee4da12a292f6911bcb6db418b8ff90755e7bb552e8cd521ec615dcb27be0c firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-qwlan30.bin
acac3bec6197a67fb1475d1a322fd653c3916bea6e1c86001cfc290d4b52c64fd5a19d1fd4af974fba8aa4f4ddaa2a28b1fa6f4e3da2644bede65315f194cfce firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-qwlan30_ibss.bin
ce078725194271bc9fec296eb2a1e759a0b0fa6970401a3fd5d8808a8436bcde60280d29fc691fb37783e990a907986d8255a23c519e356c916209c5044e0a04 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv_1.3.tlv
c2399be2dc0121ba5466bcc2ba77ecb8cdef98d0b21bbe5ddb66f2e70a87525ff559b50235f1ad178d585f33adda700ef0942904fd93dee5083ed19afd0e6ddf firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv_2.1.tlv
9255a4552d0fec0b8f35843f3907e4ab594b515e829f63ddbaa322d0f19c9e9c6303243541ab700975df09dcb5389466ee95227edc95b64ad8657d92875cffd9 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv_3.0.tlv
21f41134524a9102f71219711b307c4e0e8f885ff77ba73bbd4b22e7627175683c54724b2b0dbb450e097d2b2467355b7f6b46473c630b21dd2c9c601f9c654a firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv_3.2.tlv
df75f9ec699451dce65f4bd2df91b32c8394ab02b75a2b37c495b5bcac0e48c6808e5672b5aba196d7bd29244bc5c9f63ff301aa50408a6e468821b3e43ffbf6 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv.img
6f8bc706bd51a2cc2f53bc20e0780f5013aac7e49831358164d725aeddae08efc0c27ecc6ac578ef3125236cc6c395dfa43064757bfcd2d394920faa30bbb8b6 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-rampatch_tlv_tf_1.1.tlv
83417fadc647fa8898504c10a7346336191a4b08d99cecaf183dd37f5ea511678a3add1e3e4d8e80388fff949e42fcf641968676a09eabb3731aa1f823744327 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-utf30.bin
de94887f8b4267dd0e6bcf3da8b4c459b82b0fbc1d8e25232b9c00af665cfe85e6eeb998bf7162a19dcf1cb88e05d8feed75fc1a81ec23123392cd1404062b18 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-utfbd30.bin
063a6da1c99ccdb4a2f99976cd0f4783ad380e4dbb16c8b29fda201f5c64a33774c91cbeebe0916326e69027414185a35b28da24fe7bd3884fd282bf3763ff78 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-utfbd32.bin
45e9f0f16a5184f1efa1b4bf759a3fde912c6a6d68b5f5fcfdb572f8fea3123ef1a31681463d0373cc5a622d1b66a67f3adb49e79af2caf75bc9f2ce4cbfa49e firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-fimc_is_lib.bin
5ae93bacd8fd07fd5022aad752cbd5fc76b6a9dff7b7b98560338822ecb9aa70b40f4aa77cccbbe0310bb47aada215283474df25827958145a82a2dbe873347c firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-mfc_fw.bin
ecaf29dfdbf891108715bdee34d32100b4421ad88eed84f5bad7ca4ce2477a22ef5fdc0d52aeb61e65e070d34cbb90efe1d6dc900e610de0beb28f0aa88b9574 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-setfile_3p8.bin
5a28607209a13d359e86f3f096997fde44c0b0454416aa010bfbe0701d8a8893f06086b0cbb776110473b0c3a89e9fdc7976cfcae93f6720b31e6d17223c4011 firmware-samsung-universal7880-385918d85eaf932918584600c621ab5d4b0a1b28-setfile_3p8_front.bin"
+29
View File
@@ -0,0 +1,29 @@
# Contributor: DolphinChips <DoIphinChips@protonmail.com>
# Maintainer: DolphinChips <DoIphinChips@protonmail.com>
pkgname="cage"
pkgver="0.1.1"
pkgrel=0
pkgdesc="A Wayland kiosk"
url="https://www.hjdskes.nl/projects/cage"
arch="all"
license="MIT"
depends="xorg-server-xwayland elogind"
makedepends="meson wayland-protocols wlroots-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Hjdskes/cage/archive/v$pkgver.tar.gz"
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--buildtype=release \
-Dxwayland=true \
build
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
}
sha512sums="f071f04f1ff7d2b89ae72238ef1a28fd3fbc389803e4a4fe0c3d938c7a2a1cc962b63929d081d975f98131ff6dd9637762e8036bb320277e2580f0cbeb0c6201 cage-0.1.1.tar.gz"
+10 -3
View File
@@ -4,7 +4,7 @@ _config="config-${_flavor}.${CARCH}"
pkgname=linux-${_flavor}
pkgver=5.3.0_git20190726
pkgrel=1
pkgrel=3
arch="aarch64"
pkgdesc="Kernel fork with PinePhone Don't be evil patches"
@@ -14,10 +14,13 @@ makedepends="devicepkg-dev perl sed installkernel bash gmp-dev bc linux-headers
options="!strip !check !tracedeps"
install=
_commit="577c793d924a0455b2b555d468cf50f97985b6f6"
_commit_rtl8723cs="1c9c0cb9d335626a66d8063399c6e16751ecc1a8"
source="
${pkgname}-${_commit}.tar.gz::https://gitlab.com/pine64-org/linux/-/archive/${_commit}/linux-${_commit}.tar.gz
rtl8723cs-${_commit_rtl8723cs}.tar.gz::https://github.com/Icenowy/rtl8723cs/archive/${_commit_rtl8723cs}.tar.gz
config-${_flavor}.aarch64
touch-dts.patch
rtl8723cs.patch
"
subpackages=""
@@ -40,6 +43,8 @@ builddir="$srcdir/linux-${_commit}"
prepare() {
default_prepare
cp -rv "$srcdir"/rtl8723cs-${_commit_rtl8723cs} "$builddir"/drivers/staging/rtl8723cs
REPLACE_GCCH=0 \
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}
@@ -84,5 +89,7 @@ package() {
}
sha512sums="88aab0956b4bb3a240b40448b46b0edbfefd038759cd4c00fe89357e666e5be054ad3cd9455de2fc5670bd656c9414bbc66580723c8532a744d06ab2a4edbac2 linux-postmarketos-allwinner-577c793d924a0455b2b555d468cf50f97985b6f6.tar.gz
9d6034e54fc838001fb53b3b3f03bba8de68c93f1e6cfbfa7e89c0b834aebded3baaa37b019d1bb1b3b64cbb9fe3f9aabdfd05299af27d3a44bcfdb1f70b78fd config-postmarketos-allwinner.aarch64
5f2285e4eb262a9429c73599871c3fecbb858a388774bc7cba7631987ed1dc4a14cd7606e8fefc655c5128851fc853132f0a081e3d710c9266739af92f4d37e8 touch-dts.patch"
e4e585ce787301eeee07ff8e45a97343456808a47ed237053f0c83a49b4958a75514def4c5263f4507a282ea90bd2bb3f8f468839f7e5fd05ae947a796c8c6b9 rtl8723cs-1c9c0cb9d335626a66d8063399c6e16751ecc1a8.tar.gz
a90b753f7cf634e1bf5fe310807e3a09d20e5e5f212e246c24834d072773802c34f207b4aca89ecdb898f85d8177bcd39b52e7e8754c1b4dd355410fa01dec9e config-postmarketos-allwinner.aarch64
5f2285e4eb262a9429c73599871c3fecbb858a388774bc7cba7631987ed1dc4a14cd7606e8fefc655c5128851fc853132f0a081e3d710c9266739af92f4d37e8 touch-dts.patch
bf06f931fb543f4bf2f0567902c3021de237fc9684f92af2ed3e956f869d907c9cff1cf3e11a72eb97bda47c8f8b28aff226634f641bdffa04b08d434f419faa rtl8723cs.patch"
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,25 @@
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index 7c96a01eef6c..e9b849ecbc80 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -36,6 +36,8 @@ source "drivers/staging/rtl8192e/Kconfig"
source "drivers/staging/rtl8723bs/Kconfig"
+source "drivers/staging/rtl8723cs/Kconfig"
+
source "drivers/staging/rtl8712/Kconfig"
source "drivers/staging/rtl8188eu/Kconfig"
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index fcaac9693b83..dfc287028474 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -8,6 +8,7 @@ obj-$(CONFIG_FB_OLPC_DCON) += olpc_dcon/
obj-$(CONFIG_RTL8192U) += rtl8192u/
obj-$(CONFIG_RTL8192E) += rtl8192e/
obj-$(CONFIG_RTL8723BS) += rtl8723bs/
+obj-$(CONFIG_RTL8723CS) += rtl8723cs/
obj-$(CONFIG_R8712U) += rtl8712/
obj-$(CONFIG_R8188EU) += rtl8188eu/
obj-$(CONFIG_RTS5208) += rts5208/
+2 -2
View File
@@ -1,5 +1,5 @@
pkgname=postmarketos-mkinitfs
pkgver=0.7.11
pkgver=0.7.14
pkgrel=0
pkgdesc="Tool to generate initramfs images for postmarketOS"
url="https://postmarketos.org"
@@ -26,4 +26,4 @@ package() {
sha512sums="3b7d697381a45a6a165d195d25a26e71773794ebc4a0d8b425321e5bb68a02405028d9712848982b2573474b7b1ee2560091c41f7f51b9e2e962eeb5204a72aa init.sh.in
9632fe7960d72da7efe9b765de72600ed8c5e38441652d7687c03138b53347f09d9f9dd66b16405b8c46969d5ea672f30c00a861841e5cdc7249182e2fdf9b27 init_functions.sh
6e0e6a08d17c5b6f22d049d51692819ebb9a86d4ef7307e384077a868ace61aaa0a59b9166cb8494142ddf150cd1d204f13889b3afd5108b2a4a95a8ecda9444 mkinitfs.sh"
ee31979b5c2e64cca1941dac4f92b164c3b9ead7acf7bb623ce8bf3ddafa3fc58f7e427ef3710c3f506583123da443e631ff0ce3d990e556689a9c37bccfe2aa mkinitfs.sh"
+12 -7
View File
@@ -86,7 +86,7 @@ get_modules_by_name()
echo "with 'y' instead of 'm' (module)."
} >&2
MODULES="drm_kms_helper drm dm_crypt \
MODULES="dm_crypt \
${deviceinfo_modules_initfs}"
modprobe \
-a \
@@ -214,10 +214,10 @@ require_package()
# Legacy u-boot images
create_uboot_files()
{
arch="arm"
if [ "${deviceinfo_arch}" == "aarch64" ]; then
arch="arm64"
fi
arch="arm"
if [ "${deviceinfo_arch}" == "aarch64" ]; then
arch="arm64"
fi
[ "${deviceinfo_generate_legacy_uboot_initfs}" == "true" ] || return
require_package "mkimage" "uboot-tools" "generate_legacy_uboot_initfs"
@@ -327,12 +327,17 @@ generate_splash_screens()
splash_text=$2
splash_args=$3
if [ "${deviceinfo_framebuffer_landscape}" == "true" ]; then
splash_args="${splash_args} --landscape"
fi
# Compute hash using the following values concatenated:
# - postmarketos-splash package version
# - splash config file
# - device resolution
# - text to be displayed
splash_hash_string="${splash_version}#${splash_config_hash}#${splash_width}#${splash_height}#${splash_text}"
# - extra arguments
splash_hash_string="${splash_version}#${splash_config_hash}#${splash_width}#${splash_height}#${splash_text}#${splash_args}"
splash_hash="$(echo "${splash_hash_string}" | md5sum | awk '{ print $1 }')"
if ! [ -e "${splash_cache_dir}/${splash_name}_${splash_hash}.ppm.gz" ]; then
@@ -372,7 +377,7 @@ append_or_copy_dtb()
cat "$kernel" "$dtb" > "${kernel}-dtb"
else
echo "==> kernel: copying dtb ${deviceinfo_dtb} to boot partition"
cp "$dtb" "${outfile/initramfs-/dtb-}.dtb"
cp "$dtb" "$(dirname ${outfile})"
fi
}
+2 -2
View File
@@ -3,13 +3,13 @@
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=postmarketos-ui-sway
pkgver=1
pkgrel=0
pkgrel=1
pkgdesc="(Wayland) Tiling WM, drop-in replacement for i3wm (DOES NOT RUN WITHOUT HW ACCELERATION!)"
url="https://postmarketos.org"
arch="noarch"
license="MIT"
depends="dbus sway swaylock swayidle xorg-server-xwayland postmarketos-artwork-wallpapers
rxvt-unicode mesa-dri-swrast xorg-server lightdm lightdm-gtk-greeter elogind"
rxvt-unicode xorg-server lightdm lightdm-gtk-greeter elogind"
install="$pkgname.post-install"
source="60-lightdm-autologin.conf postmarketos_background"
options="!check" # no testsuite
@@ -0,0 +1,5 @@
# This file gets removed with postmarketos-ui-unity8, even if modified!
[Seat:*]
autologin-user=username
autologin-user-timeout=0
autologin-session=unity8
+19
View File
@@ -0,0 +1,19 @@
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=postmarketos-ui-unity8
pkgver=1
pkgrel=0
pkgdesc="(Wayland) Unity8"
url="https://wiki.postmarketos.org/wiki/Unity_8"
arch="noarch"
license="GPL-3.0-or-later"
depends="unity8 lightdm xorg-server"
install="$pkgname.post-install"
source="60-lightdm-autologin.conf"
options="!check"
package() {
install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
}
sha512sums="f727782535b116f00966d48fbbfe7891fbc3f4662f5aca9646e8a7bdec312e7259d2930499cfc9e11b7a444f6729a4286d080ffc55e7d6a6a6f2ae5b0bd411a5 60-lightdm-autologin.conf"
@@ -0,0 +1,5 @@
#!/bin/sh
sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
rc-update add lightdm default
@@ -0,0 +1,25 @@
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
if [ $(tty) = "/dev/tty1" ]; then
# udevadm trigger
# udevadm settle
# Wizard is broken
mkdir -p $HOME/.config/ubuntu-system-settings
touch $HOME/.config/ubuntu-system-settings/wizard-has-run
export LD_LIBRARY_PATH=/usr/lib/qt5/plugins/platforms
export MIR_SERVER_CURSOR=null
export QT_QPA_PLATFORM=mirserver
export G_MESSAGES_DEBUG=all
# sleep 2
ck-launch-session unity8 2>&1 | logger -t "$(whoami):unity8"
fi
fi
+2 -2
View File
@@ -1,7 +1,7 @@
# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=reboot-mode
pkgver=0.1
pkgver=0.2
pkgrel=0
pkgdesc="Reboot the device to a specific mode"
url="https://postmarketos.org"
@@ -22,4 +22,4 @@ package() {
"${pkgdir}/usr/sbin/reboot-mode"
}
sha512sums="37d282608f30b1b8fa4f7501a8afcaa81902c9dfaee0c4c92ab05028e3a99a69c601dc7fce6ab06582db044b6fd0f5bffabe9d6064af9e670266978d66fe2515 reboot-mode.c"
sha512sums="a0cd4097d24fb6c66edce60558942d18ccf45925013013e5af5437471b1a855abe12857deb45b5f970b04e8b9dba99177b9080fff584fbd16262f0a7aabbf4b1 reboot-mode.c"
+3 -2
View File
@@ -4,6 +4,7 @@
*
* Copyright (C) 2019 Daniele Debernardi <drebrez@gmail.com>
*/
#include <errno.h>
#include <linux/reboot.h>
#include <stdio.h>
#include <stdlib.h>
@@ -42,8 +43,8 @@ int main(int argc, char **argv)
int ret;
ret = syscall(__NR_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, argv[1]);
if (ret) {
printf("Error: %s", strerror(ret));
if (ret < 0) {
printf("Error: %s\n", strerror(errno));
}
return ret;
+7 -5
View File
@@ -1,8 +1,9 @@
# Forked from Alpine for qmi voicecall support & smdpkt patches
pkgname=ofono
pkgver=1.29
pkgrel=1
pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications"
pkgver=9999
_pkgver=1.29
pkgrel=0
pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications [$_pkgver]"
url="https://01.org/ofono"
arch="all"
license="GPL-2.0-only"
@@ -11,7 +12,7 @@ makedepends="glib-dev dbus-dev eudev-dev
linux-headers bsd-compat-headers libexecinfo-dev
autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.xz
source="https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$_pkgver.tar.xz
fix-explicit-bzero.patch
fix-TEMP_FAILURE_RETRY.patch
skip-broken-test.patch
@@ -23,6 +24,7 @@ source="https://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.x
0005-qmimodem-implement-voice-calls.patch
$pkgname.initd
udev.rules"
builddir="$srcdir/$pkgname-$_pkgver"
build() {
autoreconf -fi
@@ -41,7 +43,7 @@ check() {
package() {
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname-${pkgver}/plugins/ofono.rules" "$pkgdir/usr/lib/udev/rules.d/60-ofono.rules"
install -Dm644 "$srcdir/$pkgname-${_pkgver}/plugins/ofono.rules" "$pkgdir/usr/lib/udev/rules.d/60-ofono.rules"
install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/60-ofono-pmos.rules"
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
}
+120
View File
@@ -0,0 +1,120 @@
# Forked from Alpine until this is merged:
# https://github.com/alpinelinux/aports/pull/9894
pkgname=networkmanager
pkgver=1.18.2
pkgrel=3
pkgdesc="Network Management daemon"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch="all !s390x" # Limited by iwd
license="GPL-2.0-or-later"
depends="dhcpcd iptables dbus"
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="$depends_dev
curl-dev
dbus-glib-dev
eudev-dev
libgudev-dev
gobject-introspection-dev
intltool
libndp-dev
libnl3-dev
libsoup-dev
libteam-dev
linux-headers
modemmanager-dev
newt-dev
nss-dev
polkit-dev
ppp-dev
readline-dev
util-linux-dev
jansson-dev
vala
meson
py-gobject3
libpsl-dev
python2
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc"
source="https://download.gnome.org/sources/NetworkManager/${pkgver:0:4}/NetworkManager-$pkgver.tar.xz
$pkgname.conf
$pkgname.initd
$pkgname.rules
musl-basic.patch
musl-network-support.patch
musl-fix-includes.patch
musl-process-util.patch
musl-has-not-secure-getenv.patch
musl-compar.patch
fix-ppc64le-build.patch
"
options="!check" # fail to compile on musl
builddir="$srcdir"/NetworkManager-$pkgver
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
-Dsystemdsystemunitdir=no \
-Dudev_dir=/lib/udev \
-Diptables=/sbin/iptables \
-Ddnsmasq=/usr/sbin/dnsmasq \
-Dmodify_system=true \
-Dselinux=false \
-Dsystemd_journal=false \
-Dlibaudit=no \
-Diwd=true \
-Dpppd=/usr/sbin/pppd \
-Dconfig_plugins_default=ifupdown \
-Difupdown=true \
-Ddhcpcd=true \
-Dconfig_dhcp_default=dhcpcd \
-Dvapi=true \
-Dtests=no \
-Dlibnm_glib=true \
-Dpolkit_agent=true \
-Dsession_tracking=no \
-Dqt=false \
. output
ninja -C output introspection/libnmdbus.a
ninja -C output
}
check() {
ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
install -m755 -D "$srcdir"/networkmanager.initd "$pkgdir"/etc/init.d/networkmanager
install -m644 -D "$srcdir/$pkgname.conf" "$pkgdir"/etc/NetworkManager/NetworkManager.conf
# allow plugdev users to modify connections
install -m644 -D "$srcdir/$pkgname.rules" \
"$pkgdir/usr/share/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname"
# post-install message
mv "$pkgdir/usr/share/doc/NetworkManager" "$pkgdir/usr/share/doc/$pkgname"
cat > "$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
To modify system network connections without the root password: add your user account to the 'plugdev' group, or use Polkit.
To use iwd instead of the default wpa_supplicant install iwd, start its service and add the following to your /etc/NetworkManager/NetworkManager.conf:
[device]
wifi.backend=iwd
EOF
}
sha512sums="a220d856632693298af0bd23ae4393ee597684fcae400c8ed35bae5e543bcdbd0b0e879f4a7587b674ae86c5fdfbee955acd0fb6226cb95ed31372cb7c222814 NetworkManager-1.18.2.tar.xz
a6e507260e2ceffad4cacb2b49a1d4f6b933e5ae8bc50c1bd56f828298c5dc8d9d17aa4be766faeacefbe3c6c0c748e4ef499a55bb5ee40f0f04bbf766fbbc82 networkmanager.conf
5ac6d11b588c479de9c7e1fef79ed0a2c04dc159a2173636a6a77a2867c839cc1609860756109e9e794f23a02238a6d94834d8fb6fcb81a6be3ef1dbf4a34e6f networkmanager.initd
9820ed2ead0af689644842de57657bb10330a1eaff0e85b21ae9913f55e399e47d8b41b0a12956f30de80272b4424c6e55f33acbc88e156879003a260bf576f6 networkmanager.rules
9d1a9185b0b50f677a4173a8b67e808ba36971111165ae446e9a15b5c7adcc8cc6d44fa7bddac05762c50d80b04818a483756eaf2aaefe0162e1f37cd070fca4 musl-basic.patch
095c1d944f3274ba31435cd1af8e2affb4187bdd921a0cc0c185b59810b73cfab7919b5f551bab3d9e4644fbee8f9ac017b4c5d69a771fb68319cbefa37c71a3 musl-network-support.patch
a3fe34eb93cb918650390ea01696a8e8489455a89721e479d6b83ab730f6608e9cf78cd0d993e7c8051708b695eea420490e36d85d400fa39ec0ff5d3882d26b musl-fix-includes.patch
b5cd94928ca3ba1fb71aec28d9ff66f319f6d23131e02c90f1dfbfaf16c537935228a9981c95f29ffb74e91752a17801c94d09ca57b7ba98028262b9e8e5d322 musl-process-util.patch
76b6728389686c91df6acafbbe17af7f0e01971e5f7185e164dcb39f93982ac6b73fc2cdf0ba2018e3fa80321178621fe2a5d910546de98bfc52484aa5d90d34 musl-has-not-secure-getenv.patch
634377674691b52da80ca4c445a727d39cd40269f7deef0d3ccc1e1041cc262e8bc1423200e9a2b0cf1804e9950059ebbbc827f1200c6a97c58bc76080a6d6d2 musl-compar.patch
c2dbdf31adb472dc6b14aad6d7a0981b2618880df7c9081ebb9bc6da8af4c5e791c36c4e997878d5e1e7f96bd65814f718e7ae23dcfea5ac5aa91acdab3775ae fix-ppc64le-build.patch"
@@ -0,0 +1,12 @@
diff --git a/libnm/meson.build b/libnm/meson.build
index 4b3df97..31c6fa6 100644
--- a/libnm/meson.build
+++ b/libnm/meson.build
@@ -162,6 +162,7 @@ libnm = shared_library(
libnm_core_dep,
uuid_dep,
libnm_systemd_shared_no_logging_dep,
+ libnmdbus_dep,
],
c_args: cflags,
link_with: libnm_utils,
+46
View File
@@ -0,0 +1,46 @@
diff --git a/libnm-core/nm-json.c b/libnm-core/nm-json.c
index aa181a4..98c39fc 100644
--- a/libnm-core/nm-json.c
+++ b/libnm-core/nm-json.c
@@ -23,6 +23,10 @@
#include <dlfcn.h>
+#ifndef RTLD_DEEPBIND
+#define RTLD_DEEPBIND 0
+#endif
+
void *_nm_jansson_json_object_iter_value;
void *_nm_jansson_json_object_key_to_iter;
void *_nm_jansson_json_integer;
diff --git a/shared/systemd/src/basic/stdio-util.h b/shared/systemd/src/basic/stdio-util.h
index c3b9448..e80a938 100644
--- a/shared/systemd/src/basic/stdio-util.h
+++ b/shared/systemd/src/basic/stdio-util.h
@@ -1,7 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
+#if defined(__GLIBC__)
#include <printf.h>
+#endif
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
diff --git a/shared/systemd/src/basic/util.h b/shared/systemd/src/basic/util.h
index 25e6ab8..7967e8a 100644
--- a/shared/systemd/src/basic/util.h
+++ b/shared/systemd/src/basic/util.h
@@ -46,6 +46,12 @@ static inline unsigned u64log2(uint64_t n) {
#endif
}
+#if !defined(__GLIBC__)
+typedef int (*__compar_fn_t) (const void*, const void*);
+typedef __compar_fn_t comparison_fn_t;
+typedef int (*__compar_d_fn_t) (const void *, const void *, void *);
+#endif
+
static inline unsigned u32ctz(uint32_t n) {
#if __SIZEOF_INT__ == 4
return n != 0 ? __builtin_ctz(n) : 32;
+18
View File
@@ -0,0 +1,18 @@
diff --git a/shared/systemd/src/basic/sort-util.h b/shared/systemd/src/basic/sort-util.h
index e029f86..935f136 100644
--- a/shared/systemd/src/basic/sort-util.h
+++ b/shared/systemd/src/basic/sort-util.h
@@ -5,6 +5,13 @@
#include "macro.h"
+#ifndef __COMPAR_FN_T
+# define __COMPAR_FN_T
+typedef int (*__compar_fn_t) (const void *, const void *);
+typedef __compar_fn_t comparison_fn_t;
+typedef int (*__compar_d_fn_t) (const void *, const void *, void *);
+#endif
+
void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
__compar_d_fn_t compar, void *arg);
@@ -0,0 +1,52 @@
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index bd4fbcc..cb5436f 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -32,7 +32,11 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <linux/if_addr.h>
+#if defined(__GLIBC__)
#include <linux/if_arp.h>
+#else
+#include <linux/if.h>
+#endif
#include <linux/rtnetlink.h>
#include <linux/pkt_sched.h>
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 40e068a..aa57ce8 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
+#include <asm/types.h>
#include "nm-glib-aux/nm-c-list.h"
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index d4b0115..c934f10 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -20,6 +20,7 @@
#include "nm-default.h"
#include "nm-linux-platform.h"
+#include "wpan/nm-wpan-utils.h"
#include <arpa/inet.h>
#include <dlfcn.h>
@@ -28,7 +29,11 @@
#include <libudev.h>
#include <linux/fib_rules.h>
#include <linux/ip.h>
+#if defined(__GLIBC__)
#include <linux/if_arp.h>
+#else
+#include <linux/if.h>
+#endif
#include <linux/if_bridge.h>
#include <linux/if_link.h>
#include <linux/if_tun.h>
@@ -0,0 +1,13 @@
diff --git a/src/systemd/sd-adapt-core/nm-sd-adapt-core.h b/src/systemd/sd-adapt-core/nm-sd-adapt-core.h
index 8c07c53..d043afc 100644
--- a/src/systemd/sd-adapt-core/nm-sd-adapt-core.h
+++ b/src/systemd/sd-adapt-core/nm-sd-adapt-core.h
@@ -65,7 +65,7 @@
# ifdef HAVE___SECURE_GETENV
# define secure_getenv __secure_getenv
# else
-# error neither secure_getenv nor __secure_getenv is available
+# define secure_getenv getenv
# endif
#endif
@@ -0,0 +1,42 @@
--- a/libnm-core/nm-utils.h
+++ b/libnm-core/nm-utils.h
@@ -30,7 +30,11 @@
#include <netinet/in.h>
/* For ETH_ALEN and INFINIBAND_ALEN */
+#if defined(__GLIBC__)
#include <linux/if_ether.h>
+#else
+#define ETH_ALEN 6 /* Octets in one ethernet addr */
+#endif
#include <linux/if_infiniband.h>
#include "nm-core-enum-types.h"
--- a/src/platform/wifi/nm-wifi-utils.h
+++ b/src/platform/wifi/nm-wifi-utils.h
@@ -22,7 +22,11 @@
#ifndef __WIFI_UTILS_H__
#define __WIFI_UTILS_H__
+#if defined(__GLIBC__)
#include <net/ethernet.h>
+#else /* musl libc */
+#define ETH_ALEN 6 /* Octets in one ethernet addr */
+#endif
#include "nm-dbus-interface.h"
--- a/shared/systemd/src/basic/socket-util.h 2019-03-16 15:41:33.287235649 +0100
+++ b/shared/systemd/src/basic/socket-util.h 2019-03-16 15:42:24.273912106 +0100
@@ -12,6 +12,11 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
+#if !defined(__GLIBC__)
+/* SIOCGSTAMPNS from linux/asm-generic.h
+ * for src/systemd/src/libsystemd-network/sd-lldp.c */
+#include <linux/sockios.h>
+#endif
#include "macro.h"
#include "missing_socket.h"
@@ -0,0 +1,40 @@
--- a/shared/systemd/src/basic/process-util.c
+++ b/shared/systemd/src/basic/process-util.c
@@ -21,6 +21,9 @@
#include <sys/wait.h>
#include <syslog.h>
#include <unistd.h>
+#ifndef __GLIBC__
+#include <pthread.h>
+#endif
#if 0 /* NM_IGNORED */
#if HAVE_VALGRIND_VALGRIND_H
#include <valgrind/valgrind.h>
@@ -1168,11 +1171,13 @@ void reset_cached_pid(void) {
cached_pid = CACHED_PID_UNSET;
}
+#ifdef __GLIBC__
/* We use glibc __register_atfork() + __dso_handle directly here, as they are not included in the glibc
* headers. __register_atfork() is mostly equivalent to pthread_atfork(), but doesn't require us to link against
* libpthread, as it is part of glibc anyway. */
extern int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void *dso_handle);
extern void* __dso_handle _weak_;
+#endif
pid_t getpid_cached(void) {
static bool installed = false;
@@ -1201,7 +1206,12 @@ pid_t getpid_cached(void) {
* only half-documented (glibc doesn't document it but LSB does — though only superficially)
* we'll check for errors only in the most generic fashion possible. */
- if (__register_atfork(NULL, NULL, reset_cached_pid, __dso_handle) != 0) {
+ #ifdef __GLIBC__
+ if (__register_atfork(NULL, NULL, reset_cached_pid, __dso_handle) != 0) {
+ #else
+ if (pthread_atfork(NULL, NULL, reset_cached_pid) != 0) {
+ #endif
+
/* OOM? Let's try again later */
cached_pid = CACHED_PID_UNSET;
return new_pid;
+2
View File
@@ -0,0 +1,2 @@
[main]
dhcp=dhcpcd
+17
View File
@@ -0,0 +1,17 @@
#!/sbin/openrc-run
# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
# Distributed under the terms of the GNU General Purpose License v2
# $Header: $
supervisor=supervise-daemon
command=/usr/sbin/NetworkManager
command_args_foreground="-n"
description="Network Manager Daemon"
depend() {
need dbus
provide net
}
# vim: set ft=gentoo-init-d ts=3 sw=3 et:
@@ -0,0 +1,9 @@
#!/bin/sh
addgroup -S plugdev 2>/dev/null
printf " *\n * To setup system connections, regular users must be member of 'plugdev' group.\n *\n"
printf " *\n * To control WiFi devices, enable wpa_supplicant service: 'rc-update add wpa_supplicant default'\n"
printf " * then reboot the system or restart 'wpa_supplicant' and 'networkmanager' services respectively.\n *\n"
exit 0
+1
View File
@@ -0,0 +1 @@
networkmanager.pre-install
+9
View File
@@ -0,0 +1,9 @@
// Let users in plugdev group modify NetworkManager
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
subject.isInGroup("plugdev") && subject.active) {
return "yes";
}
});
+119
View File
@@ -0,0 +1,119 @@
# Forked from Alpine until this is merged:
# https://github.com/alpinelinux/aports/pull/9894
pkgname=wpa_supplicant
pkgver=2.8
pkgrel=2
pkgdesc="A utility providing key negotiation for WPA wireless networks"
url="https://w1.fi/wpa_supplicant/"
arch="all"
license="BSD-3-Clause"
subpackages="$pkgname-doc $pkgname-openrc"
makedepends="linux-headers openssl-dev dbus-dev libnl3-dev pcsc-lite-dev"
source="https://w1.fi/releases/$pkgname-$pkgver.tar.gz
wpa_supplicant.initd
wpa_supplicant.confd
wpa_cli.confd
wpa_cli.initd
eloop.patch
config
wpa_cli.sh"
# secfixes:
# 2.8-r0:
# - CVE-2019-11555
# 2.7-r3:
# - CVE-2019-11555
# 2.7-r2:
# - CVE-2019-9494
# - CVE-2019-9495
# - CVE-2019-9497
# - CVE-2019-9498
# - CVE-2019-9499
# 2.7-r0:
# - CVE-2017-13077
# - CVE-2017-13078
# - CVE-2017-13079
# - CVE-2017-13080
# - CVE-2017-13081
# - CVE-2017-13082
# - CVE-2017-13086
# - CVE-2017-13087
# - CVE-2017-13088
# 2.6-r14:
# - CVE-2018-14526
# 2.6-r7:
# - CVE-2017-13077
# - CVE-2017-13078
# - CVE-2017-13079
# - CVE-2017-13080
# - CVE-2017-13081
# - CVE-2017-13082
# - CVE-2017-13086
# - CVE-2017-13087
# - CVE-2017-13088
prepare() {
cd "$builddir"
default_prepare
# Copy our configuration file to the build directory
cp "$srcdir"/config "$builddir"/wpa_supplicant/.config
}
build() {
cd "$builddir"/wpa_supplicant
make LIBDIR=/lib BINDIR=/sbin
}
check() {
cd "$builddir"/wpa_supplicant
make eapol_test
}
package() {
cd "$builddir"/wpa_supplicant
make DESTDIR="$pkgdir" LIBDIR=/lib BINDIR=/sbin install
install -Dm644 wpa_supplicant.conf \
"$pkgdir"/usr/share/doc/wpa_supplicant/examples/wpa_supplicant.conf
install -Dm755 "$srcdir"/wpa_cli.sh \
"$pkgdir"/etc/wpa_supplicant/wpa_cli.sh
local man=
for man in doc/docbook/*.?; do
install -Dm644 "$man" \
"$pkgdir"/usr/share/man/man${man##*.}/${man##*/}
done
install -Dm755 eapol_test "$pkgdir"/sbin/eapol_test
# dbus
cd dbus
install -d "$pkgdir"/etc/dbus-1/system.d
install -m644 dbus-wpa_supplicant.conf \
"$pkgdir"/etc/dbus-1/system.d/wpa_supplicant.conf
install -d "$pkgdir"/usr/share/dbus-1/system-services
install fi.w1.wpa_supplicant1.service \
"$pkgdir"/usr/share/dbus-1/system-services
install -d "$pkgdir"/var/run/wpa_supplicant
# openrc runscripts
install -Dm755 "$srcdir"/wpa_supplicant.initd \
"$pkgdir"/etc/init.d/wpa_supplicant
install -Dm644 "$srcdir"/wpa_supplicant.confd \
"$pkgdir"/etc/conf.d/wpa_supplicant
install -Dm755 "$srcdir"/wpa_cli.initd \
"$pkgdir"/etc/init.d/wpa_cli
install -Dm644 "$srcdir"/wpa_cli.confd \
"$pkgdir"/etc/conf.d/wpa_cli
}
sha512sums="b37d254d32a4b7a1f95fcb18ec1be0ffb9d025e0b21c42c53acc4cd839be355df1b125b32cc073f9fe09b746807321e23dbe25dc2fc8a7cafa1e71add69f245b wpa_supplicant-2.8.tar.gz
4d2d3e34bc21305eab08880552c5ffe3548a1459549ec2393f5d417ec1240fab7731b028e7fa7de5d7b3804b91952ff7d209a42c1091efadf43c0724bc3469b0 wpa_supplicant.initd
cbfc6b80cb47d4e33415018054a0d8ba39acbadbc3e44776afa918cc4c1e4d36ed3dd809b3448332575ac4fa0b82ad77d7530563f0b9f5e1374a5deea73a3b93 wpa_supplicant.confd
c3db077fa78dd296d90d07626cb4e684f87618a77ffd51c1ae04b47be7bc0db1e9a3e0f7442acef21c081f6bb782f150cbbd3d0bf245d6ab43f19da3899b53b9 wpa_cli.confd
a0ac905ef23af18f1899a797e18157a54fa509c7cc3c59583de768a493d750876bbc0a89237373b67171e7c84259d2350d2c0e33d8e1ea56db9a2e5f27b64128 wpa_cli.initd
2be055dd1f7da5a3d8e79c2f2c0220ddd31df309452da18f290144d2112d6dbde0fc633bb2ad02c386a39d7785323acaf5f70e5969995a1e8303a094eb5fe232 eloop.patch
6707991f9a071f2fcb09d164d31d12b1f52b91fbb5574b70b8d6f9727f72bbe42b03dd66d10fcc2126f5b7e49ac785657dec90e88b4bf54a9aa5638582f6e505 config
212c4265afce2e72b95a32cd785612d6c3e821b47101ead154136d184ac4add01434ada6c87edbb9a98496552e76e1a4d79c6b5840e3a5cfe5e6d602fceae576 wpa_cli.sh"
+550
View File
@@ -0,0 +1,550 @@
# Example wpa_supplicant build time configuration
#
# This file lists the configuration options that are used when building the
# hostapd binary. All lines starting with # are ignored. Configuration option
# lines must be commented out complete, if they are not to be included, i.e.,
# just setting VARIABLE=n is not disabling that variable.
#
# This file is included in Makefile, so variables like CFLAGS and LIBS can also
# be modified from here. In most cases, these lines should use += in order not
# to override previous values of the variables.
# Uncomment following two lines and fix the paths if you have installed OpenSSL
# or GnuTLS in non-default location
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib
# Some Red Hat versions seem to include kerberos header files from OpenSSL, but
# the kerberos files are not in the default include path. Following line can be
# used to fix build issues on such systems (krb5.h not found).
#CFLAGS += -I/usr/include/kerberos
# Driver interface for generic Linux wireless extensions
# Note: WEXT is deprecated in the current Linux kernel version and no new
# functionality is added to it. nl80211-based interface is the new
# replacement for WEXT and its use allows wpa_supplicant to properly control
# the driver to improve existing functionality like roaming and to support new
# functionality.
CONFIG_DRIVER_WEXT=y
# Driver interface for Linux drivers using the nl80211 kernel interface
CONFIG_DRIVER_NL80211=y
# QCA vendor extensions to nl80211
#CONFIG_DRIVER_NL80211_QCA=y
# driver_nl80211.c requires libnl. If you are compiling it yourself
# you may need to point hostapd to your version of libnl.
#
#CFLAGS += -I$<path to libnl include files>
#LIBS += -L$<path to libnl library files>
# Use libnl v2.0 (or 3.0) libraries.
#CONFIG_LIBNL20=y
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
#CONFIG_DRIVER_BSD=y
#CFLAGS += -I/usr/local/include
#LIBS += -L/usr/local/lib
#LIBS_p += -L/usr/local/lib
#LIBS_c += -L/usr/local/lib
# Driver interface for Windows NDIS
#CONFIG_DRIVER_NDIS=y
#CFLAGS += -I/usr/include/w32api/ddk
#LIBS += -L/usr/local/lib
# For native build using mingw
#CONFIG_NATIVE_WINDOWS=y
# Additional directories for cross-compilation on Linux host for mingw target
#CFLAGS += -I/opt/mingw/mingw32/include/ddk
#LIBS += -L/opt/mingw/mingw32/lib
#CC=mingw32-gcc
# By default, driver_ndis uses WinPcap for low-level operations. This can be
# replaced with the following option which replaces WinPcap calls with NDISUIO.
# However, this requires that WZC is disabled (net stop wzcsvc) before starting
# wpa_supplicant.
# CONFIG_USE_NDISUIO=y
# Driver interface for wired Ethernet drivers
CONFIG_DRIVER_WIRED=y
# Driver interface for the Broadcom RoboSwitch family
#CONFIG_DRIVER_ROBOSWITCH=y
# Driver interface for no driver (e.g., WPS ER only)
#CONFIG_DRIVER_NONE=y
# Solaris libraries
#LIBS += -lsocket -ldlpi -lnsl
#LIBS_c += -lsocket
# Enable IEEE 802.1X Supplicant (automatically included if any EAP method is
# included)
CONFIG_IEEE8021X_EAPOL=y
# EAP-MD5
CONFIG_EAP_MD5=y
# EAP-MSCHAPv2
CONFIG_EAP_MSCHAPV2=y
# EAP-TLS
CONFIG_EAP_TLS=y
# EAL-PEAP
CONFIG_EAP_PEAP=y
# EAP-TTLS
CONFIG_EAP_TTLS=y
# EAP-FAST
# Note: If OpenSSL is used as the TLS library, OpenSSL 1.0 or newer is needed
# for EAP-FAST support. Older OpenSSL releases would need to be patched, e.g.,
# with openssl-0.9.8x-tls-extensions.patch, to add the needed functions.
CONFIG_EAP_FAST=y
# EAP-GTC
CONFIG_EAP_GTC=y
# EAP-OTP
CONFIG_EAP_OTP=y
# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
CONFIG_EAP_SIM=y
# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
CONFIG_EAP_PSK=y
# EAP-pwd (secure authentication using only a password)
#CONFIG_EAP_PWD=y
# EAP-PAX
CONFIG_EAP_PAX=y
# LEAP
CONFIG_EAP_LEAP=y
# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
CONFIG_EAP_AKA=y
# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
# This requires CONFIG_EAP_AKA to be enabled, too.
CONFIG_EAP_AKA_PRIME=y
# Enable USIM simulator (Milenage) for EAP-AKA
#CONFIG_USIM_SIMULATOR=y
# EAP-SAKE
#CONFIG_EAP_SAKE=y
# EAP-GPSK
#CONFIG_EAP_GPSK=y
# Include support for optional SHA256 cipher suite in EAP-GPSK
#CONFIG_EAP_GPSK_SHA256=y
# EAP-TNC and related Trusted Network Connect support (experimental)
#CONFIG_EAP_TNC=y
# Wi-Fi Protected Setup (WPS)
CONFIG_WPS=y
# Enable WPS external registrar functionality
#CONFIG_WPS_ER=y
# Disable credentials for an open network by default when acting as a WPS
# registrar.
#CONFIG_WPS_REG_DISABLE_OPEN=y
# Enable WPS support with NFC config method
#CONFIG_WPS_NFC=y
# EAP-IKEv2
#CONFIG_EAP_IKEV2=y
# EAP-EKE
#CONFIG_EAP_EKE=y
# PKCS#12 (PFX) support (used to read private key and certificate file from
# a file that usually has extension .p12 or .pfx)
CONFIG_PKCS12=y
# Smartcard support (i.e., private key on a smartcard), e.g., with openssl
# engine.
CONFIG_SMARTCARD=y
# PC/SC interface for smartcards (USIM, GSM SIM)
# Enable this if EAP-SIM or EAP-AKA is included
CONFIG_PCSC=y
# Support HT overrides (disable HT/HT40, mask MCS rates, etc.)
#CONFIG_HT_OVERRIDES=y
# Support VHT overrides (disable VHT, mask MCS rates, etc.)
#CONFIG_VHT_OVERRIDES=y
# Development testing
#CONFIG_EAPOL_TEST=y
# Select control interface backend for external programs, e.g, wpa_cli:
# unix = UNIX domain sockets (default for Linux/*BSD)
# udp = UDP sockets using localhost (127.0.0.1)
# udp6 = UDP IPv6 sockets using localhost (::1)
# named_pipe = Windows Named Pipe (default for Windows)
# udp-remote = UDP sockets with remote access (only for tests systems/purpose)
# udp6-remote = UDP IPv6 sockets with remote access (only for tests purpose)
# y = use default (backwards compatibility)
# If this option is commented out, control interface is not included in the
# build.
CONFIG_CTRL_IFACE=y
# Include support for GNU Readline and History Libraries in wpa_cli.
# When building a wpa_cli binary for distribution, please note that these
# libraries are licensed under GPL and as such, BSD license may not apply for
# the resulting binary.
#CONFIG_READLINE=y
# Include internal line edit mode in wpa_cli. This can be used as a replacement
# for GNU Readline to provide limited command line editing and history support.
CONFIG_WPA_CLI_EDIT=y
# Remove debugging code that is printing out debug message to stdout.
# This can be used to reduce the size of the wpa_supplicant considerably
# if debugging code is not needed. The size reduction can be around 35%
# (e.g., 90 kB).
#CONFIG_NO_STDOUT_DEBUG=y
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
# 35-50 kB in code size.
#CONFIG_NO_WPA=y
# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
# This option can be used to reduce code size by removing support for
# converting ASCII passphrases into PSK. If this functionality is removed, the
# PSK can only be configured as the 64-octet hexstring (e.g., from
# wpa_passphrase). This saves about 0.5 kB in code size.
#CONFIG_NO_WPA_PASSPHRASE=y
# Disable scan result processing (ap_mode=1) to save code size by about 1 kB.
# This can be used if ap_scan=1 mode is never enabled.
#CONFIG_NO_SCAN_PROCESSING=y
# Select configuration backend:
# file = text file (e.g., wpa_supplicant.conf; note: the configuration file
# path is given on command line, not here; this option is just used to
# select the backend that allows configuration files to be used)
# winreg = Windows registry (see win_example.reg for an example)
CONFIG_BACKEND=file
# Remove configuration write functionality (i.e., to allow the configuration
# file to be updated based on runtime configuration changes). The runtime
# configuration can still be changed, the changes are just not going to be
# persistent over restarts. This option can be used to reduce code size by
# about 3.5 kB.
#CONFIG_NO_CONFIG_WRITE=y
# Remove support for configuration blobs to reduce code size by about 1.5 kB.
#CONFIG_NO_CONFIG_BLOBS=y
# Select program entry point implementation:
# main = UNIX/POSIX like main() function (default)
# main_winsvc = Windows service (read parameters from registry)
# main_none = Very basic example (development use only)
#CONFIG_MAIN=main
# Select wrapper for operating system and C library specific functions
# unix = UNIX/POSIX like systems (default)
# win32 = Windows systems
# none = Empty template
#CONFIG_OS=unix
# Select event loop implementation
# eloop = select() loop (default)
# eloop_win = Windows events and WaitForMultipleObject() loop
#CONFIG_ELOOP=eloop
# Should we use poll instead of select? Select is used by default.
#CONFIG_ELOOP_POLL=y
# Should we use epoll instead of select? Select is used by default.
#CONFIG_ELOOP_EPOLL=y
# Should we use kqueue instead of select? Select is used by default.
#CONFIG_ELOOP_KQUEUE=y
# Select layer 2 packet implementation
# linux = Linux packet socket (default)
# pcap = libpcap/libdnet/WinPcap
# freebsd = FreeBSD libpcap
# winpcap = WinPcap with receive thread
# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
# none = Empty template
#CONFIG_L2_PACKET=linux
# Disable Linux packet socket workaround applicable for station interface
# in a bridge for EAPOL frames. This should be uncommented only if the kernel
# is known to not have the regression issue in packet socket behavior with
# bridge interfaces (commit 'bridge: respect RFC2863 operational state')').
#CONFIG_NO_LINUX_PACKET_SOCKET_WAR=y
# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
CONFIG_PEERKEY=y
# IEEE 802.11w (management frame protection), also known as PMF
# Driver support is also needed for IEEE 802.11w.
#CONFIG_IEEE80211W=y
# Select TLS implementation
# openssl = OpenSSL (default)
# gnutls = GnuTLS
# internal = Internal TLSv1 implementation (experimental)
# none = Empty template
CONFIG_TLS=openssl
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
# can be enabled to get a stronger construction of messages when block ciphers
# are used. It should be noted that some existing TLS v1.0 -based
# implementation may not be compatible with TLS v1.1 message (ClientHello is
# sent prior to negotiating which version will be used)
#CONFIG_TLSV11=y
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.2)
# can be enabled to enable use of stronger crypto algorithms. It should be
# noted that some existing TLS v1.0 -based implementation may not be compatible
# with TLS v1.2 message (ClientHello is sent prior to negotiating which version
# will be used)
#CONFIG_TLSV12=y
# If CONFIG_TLS=internal is used, additional library and include paths are
# needed for LibTomMath. Alternatively, an integrated, minimal version of
# LibTomMath can be used. See beginning of libtommath.c for details on benefits
# and drawbacks of this option.
#CONFIG_INTERNAL_LIBTOMMATH=y
#ifndef CONFIG_INTERNAL_LIBTOMMATH
#LTM_PATH=/usr/src/libtommath-0.39
#CFLAGS += -I$(LTM_PATH)
#LIBS += -L$(LTM_PATH)
#LIBS_p += -L$(LTM_PATH)
#endif
# At the cost of about 4 kB of additional binary size, the internal LibTomMath
# can be configured to include faster routines for exptmod, sqr, and div to
# speed up DH and RSA calculation considerably
#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
# Include NDIS event processing through WMI into wpa_supplicant/wpasvc.
# This is only for Windows builds and requires WMI-related header files and
# WbemUuid.Lib from Platform SDK even when building with MinGW.
#CONFIG_NDIS_EVENTS_INTEGRATED=y
#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
# Add support for old DBus control interface
# (fi.epitest.hostap.WPASupplicant)
#CONFIG_CTRL_IFACE_DBUS=y
# Add support for new DBus control interface
# (fi.w1.hostap.wpa_supplicant1)
CONFIG_CTRL_IFACE_DBUS_NEW=y
# Add introspection support for new DBus control interface
CONFIG_CTRL_IFACE_DBUS_INTRO=y
# Add support for loading EAP methods dynamically as shared libraries.
# When this option is enabled, each EAP method can be either included
# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to
# be loaded in the beginning of the wpa_supplicant configuration file
# (see load_dynamic_eap parameter in the example file) before being used in
# the network blocks.
#
# Note that some shared parts of EAP methods are included in the main program
# and in order to be able to use dynamic EAP methods using these parts, the
# main program must have been build with the EAP method enabled (=y or =dyn).
# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries
# unless at least one of them was included in the main build to force inclusion
# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included
# in the main build to be able to load these methods dynamically.
#
# Please also note that using dynamic libraries will increase the total binary
# size. Thus, it may not be the best option for targets that have limited
# amount of memory/flash.
#CONFIG_DYNAMIC_EAP_METHODS=y
# IEEE Std 802.11r-2008 (Fast BSS Transition)
#CONFIG_IEEE80211R=y
# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt)
#CONFIG_DEBUG_FILE=y
# Send debug messages to syslog instead of stdout
#CONFIG_DEBUG_SYSLOG=y
# Set syslog facility for debug messages
#CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
# Add support for sending all debug messages (regardless of debug verbosity)
# to the Linux kernel tracing facility. This helps debug the entire stack by
# making it easy to record everything happening from the driver up into the
# same file, e.g., using trace-cmd.
#CONFIG_DEBUG_LINUX_TRACING=y
# Add support for writing debug log to Android logcat instead of standard
# output
#CONFIG_ANDROID_LOG=y
# Enable privilege separation (see README 'Privilege separation' for details)
#CONFIG_PRIVSEP=y
# Enable mitigation against certain attacks against TKIP by delaying Michael
# MIC error reports by a random amount of time between 0 and 60 seconds
CONFIG_DELAYED_MIC_ERROR_REPORT=y
# Enable tracing code for developer debugging
# This tracks use of memory allocations and other registrations and reports
# incorrect use with a backtrace of call (or allocation) location.
#CONFIG_WPA_TRACE=y
# For BSD, uncomment these.
#LIBS += -lexecinfo
#LIBS_p += -lexecinfo
#LIBS_c += -lexecinfo
# Use libbfd to get more details for developer debugging
# This enables use of libbfd to get more detailed symbols for the backtraces
# generated by CONFIG_WPA_TRACE=y.
#CONFIG_WPA_TRACE_BFD=y
# For BSD, uncomment these.
#LIBS += -lbfd -liberty -lz
#LIBS_p += -lbfd -liberty -lz
#LIBS_c += -lbfd -liberty -lz
# wpa_supplicant depends on strong random number generation being available
# from the operating system. os_get_random() function is used to fetch random
# data when needed, e.g., for key generation. On Linux and BSD systems, this
# works by reading /dev/urandom. It should be noted that the OS entropy pool
# needs to be properly initialized before wpa_supplicant is started. This is
# important especially on embedded devices that do not have a hardware random
# number generator and may by default start up with minimal entropy available
# for random number generation.
#
# As a safety net, wpa_supplicant is by default trying to internally collect
# additional entropy for generating random data to mix in with the data fetched
# from the OS. This by itself is not considered to be very strong, but it may
# help in cases where the system pool is not initialized properly. However, it
# is very strongly recommended that the system pool is initialized with enough
# entropy either by using hardware assisted random number generator or by
# storing state over device reboots.
#
# wpa_supplicant can be configured to maintain its own entropy store over
# restarts to enhance random number generation. This is not perfect, but it is
# much more secure than using the same sequence of random numbers after every
# reboot. This can be enabled with -e<entropy file> command line option. The
# specified file needs to be readable and writable by wpa_supplicant.
#
# If the os_get_random() is known to provide strong random data (e.g., on
# Linux/BSD, the board in question is known to have reliable source of random
# data from /dev/urandom), the internal wpa_supplicant random pool can be
# disabled. This will save some in binary size and CPU use. However, this
# should only be considered for builds that are known to be used on devices
# that meet the requirements described above.
#CONFIG_NO_RANDOM_POOL=y
# IEEE 802.11n (High Throughput) support (mainly for AP mode)
#CONFIG_IEEE80211N=y
# IEEE 802.11ac (Very High Throughput) support (mainly for AP mode)
# (depends on CONFIG_IEEE80211N)
#CONFIG_IEEE80211AC=y
# Wireless Network Management (IEEE Std 802.11v-2011)
# Note: This is experimental and not complete implementation.
#CONFIG_WNM=y
# Interworking (IEEE 802.11u)
# This can be used to enable functionality to improve interworking with
# external networks (GAS/ANQP to learn more about the networks and network
# selection based on available credentials).
#CONFIG_INTERWORKING=y
# Hotspot 2.0
#CONFIG_HS20=y
# Enable interface matching in wpa_supplicant
#CONFIG_MATCH_IFACE=y
# Disable roaming in wpa_supplicant
#CONFIG_NO_ROAMING=y
# AP mode operations with wpa_supplicant
# This can be used for controlling AP mode operations with wpa_supplicant. It
# should be noted that this is mainly aimed at simple cases like
# WPA2-Personal while more complex configurations like WPA2-Enterprise with an
# external RADIUS server can be supported with hostapd.
CONFIG_AP=y
# P2P (Wi-Fi Direct)
# This can be used to enable P2P support in wpa_supplicant. See README-P2P for
# more information on P2P operations.
CONFIG_P2P=y
# Enable TDLS support
#CONFIG_TDLS=y
# Wi-Fi Direct
# This can be used to enable Wi-Fi Direct extensions for P2P using an external
# program to control the additional information exchanges in the messages.
#CONFIG_WIFI_DISPLAY=y
# Autoscan
# This can be used to enable automatic scan support in wpa_supplicant.
# See wpa_supplicant.conf for more information on autoscan usage.
#
# Enabling directly a module will enable autoscan support.
# For exponential module:
#CONFIG_AUTOSCAN_EXPONENTIAL=y
# For periodic module:
#CONFIG_AUTOSCAN_PERIODIC=y
# Password (and passphrase, etc.) backend for external storage
# These optional mechanisms can be used to add support for storing passwords
# and other secrets in external (to wpa_supplicant) location. This allows, for
# example, operating system specific key storage to be used
#
# External password backend for testing purposes (developer use)
#CONFIG_EXT_PASSWORD_TEST=y
# Enable Fast Session Transfer (FST)
#CONFIG_FST=y
# Enable CLI commands for FST testing
#CONFIG_FST_TEST=y
# OS X builds. This is only for building eapol_test.
#CONFIG_OSX=y
# Automatic Channel Selection
# This will allow wpa_supplicant to pick the channel automatically when channel
# is set to "0".
#
# TODO: Extend parser to be able to parse "channel=acs_survey" as an alternative
# to "channel=0". This would enable us to eventually add other ACS algorithms in
# similar way.
#
# Automatic selection is currently only done through initialization, later on
# we hope to do background checks to keep us moving to more ideal channels as
# time goes by. ACS is currently only supported through the nl80211 driver and
# your driver must have survey dump capability that is filled by the driver
# during scanning.
#
# TODO: In analogy to hostapd be able to customize the ACS survey algorithm with
# a newly to create wpa_supplicant.conf variable acs_num_scans.
#
# Supported ACS drivers:
# * ath9k
# * ath5k
# * ath10k
#
# For more details refer to:
# http://wireless.kernel.org/en/users/Documentation/acs
#CONFIG_ACS=y
# Support Multi Band Operation
#CONFIG_MBO=y
+16
View File
@@ -0,0 +1,16 @@
$OpenBSD: patch-src_utils_eloop_c,v 1.5 2015/09/29 11:57:54 dcoppa Exp $
don't try to access list members to free them unless already initialised
--- a/src/utils/eloop.c.orig Sun Sep 27 21:02:05 2015
+++ b/src/utils/eloop.c Mon Sep 28 09:35:05 2015
@@ -1064,6 +1064,9 @@ void eloop_destroy(void)
struct eloop_timeout *timeout, *prev;
struct os_reltime now;
+ if (eloop.timeout.prev == NULL)
+ return;
+
os_get_reltime(&now);
dl_list_for_each_safe(timeout, prev, &eloop.timeout,
struct eloop_timeout, list) {
+1
View File
@@ -0,0 +1 @@
WPACLI_OPTS="-a /etc/wpa_supplicant/wpa_cli.sh"
+9
View File
@@ -0,0 +1,9 @@
#!/sbin/openrc-run
command="/sbin/wpa_cli"
pidfile="/var/run/${SVCNAME}.pid"
command_args="${WPACLI_OPTS} -B -P ${pidfile} >/dev/null"
depend() {
need wpa_supplicant
}
+40
View File
@@ -0,0 +1,40 @@
#!/bin/sh
# Script for using udhcpc (started by ifup) with wpa_supplicant.
#
# Distributed under the same license as wpa_supplicant itself.
# Copyright (c) 2015,2018 Sören Tempel <soeren+alpine@soeren-tempel.net>
if [ $# -ne 2 ]; then
logger -t wpa_cli "this script should be called from wpa_cli(8)"
exit 1
fi
IFNAME="${1}"
ACTION="${2}"
SIGNAL=""
DHCPID=""
# PID file created by the busybox ifup applet for udhcpc.
DHCPIDFILE="/var/run/udhcpc.${IFNAME}.pid"
if [ ! -e "${DHCPIDFILE}" ]; then
logger -t wpa_cli "udhcpc isn't running for interface '${IFNAME}'"
exit 1
fi
logger -t wpa_cli "interface ${IFNAME} ${ACTION}"
case "${ACTION}" in
CONNECTED)
SIGNAL="USR1"
;;
DISCONNECTED)
SIGNAL="USR2"
;;
*)
logger -t wpa_cli "unknown action '${ACTION}'"
exit 1
esac
read -r DHCPID < "${DHCPIDFILE}"
kill -${SIGNAL} "${DHCPID}" || logger -t wpa_cli \
"Couldn't send '${SIGNAL}' to '${DHCPID}'"
+7
View File
@@ -0,0 +1,7 @@
# conf.d file for wpa_supplicant
#
# Please check man 8 wpa_supplicant for more information about the options
# wpa_supplicant accepts. Add "-u" (enable dbus) option for controling this
# service with other apps/services like NetworkManager over dbus.
#
wpa_supplicant_args=""
+60
View File
@@ -0,0 +1,60 @@
#!/sbin/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
command=/sbin/wpa_supplicant
: ${wpa_supplicant_conf:=/etc/wpa_supplicant/wpa_supplicant.conf}
wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if
# Run in dbus mode if no config file is found
if [ -f "${wpa_supplicant_conf}" ]; then
command_args="$wpa_supplicant_args -B -c$wpa_supplicant_conf $wpa_supplicant_if"
else
command_args="$wpa_supplicant_args -B -u"
fi
name="WPA Supplicant Daemon"
depend()
{
need localmount
use logger dbus
after bootmisc modules entropy
before dns dhcpcd net
keyword -shutdown
}
find_wireless()
{
local iface=
for iface in /sys/class/net/*; do
if [ -e "$iface"/wireless -o -e "$iface"/phy80211 ]; then
echo "${iface##*/}"
return 0
fi
done
return 1
}
append_wireless()
{
local iface= i=
iface=$(find_wireless)
if [ -n "$iface" ]; then
for i in $iface; do
command_args="$command_args -i$i"
done
else
eerror "Could not find a wireless interface"
fi
}
start_pre()
{
case " $command_args" in
*" -i"*) ;;
*) append_wireless;;
esac
}
+54
View File
@@ -0,0 +1,54 @@
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=ubuntu-themes
pkgver=0_git20190510
_commit="957bad2712b09d0c73f367082dd170380a21a117"
pkgrel=0
pkgdesc="Theme files for Unity 8"
arch="noarch"
url="https://unity8.io"
license="GPL-3.0-only"
subpackages="light-themes:light_themes suru-icon-theme:suru_icon_theme ubuntu-mono:ubuntu_mono ubuntu-artwork:ubuntu_artwork ubuntu-mobile-icons:ubuntu_mobile_icons"
source="ubuntu-themes-$_commit.tar.gz::https://github.com/ubports/ubuntu-themes/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
package() {
mkdir -p "$pkgdir"
}
light_themes() {
depends="gtk-murrine-engine ubuntu-mono" # humanity-icon-theme
mkdir -p "$subpkgdir"/usr/share/themes
cp -r Ambiance Radiance "$subpkgdir"/usr/share/themes
}
suru_icon_theme() {
depends="ubuntu-mobile-icons hicolor-icon-theme"
mkdir -p "$subpkgdir"/usr/share/icons
cp -r suru-icons "$subpkgdir"/usr/share/icons/suru
}
ubuntu_artwork() {
depends="light-themes ubuntu-mono" # adium-theme-ubuntu ubports-wallpaper
mkdir -p "$subpkgdir"/usr/share/icons/hicolor/48x48/apps
cp distributor-logo.png "$subpkgdir"/usr/share/icons/hicolor/48x48/apps
}
ubuntu_mobile_icons() {
depends="hicolor-icon-theme"
mkdir -p "$subpkgdir"/usr/share/icons
cp -r ubuntu-mobile "$subpkgdir"/usr/share/icons
}
ubuntu_mono() {
depends="adwaita-icon-theme hicolor-icon-theme" # humanity-icon-theme
mkdir -p "$subpkgdir"/usr/share/icons
cp -r ubuntu-mono-dark ubuntu-mono-light LoginIcons "$subpkgdir"/usr/share/icons
}
sha512sums="3811db45101dc3712ca6e08e6e6581ea682ee3099fd50e4788ca4985f56a9776ae255807351b29381883397e33be2f970dd707e5cd8db54644669fcb999b3832 ubuntu-themes-957bad2712b09d0c73f367082dd170380a21a117.tar.gz"