Compare commits

...
900 Commits
Author SHA1 Message Date
Clayton Craft 3c99d38858 main/pmos-base-ui: use dnsane for DNS
Fixes #1430 by basically filtering DNS queries to remove any with addresses
that might cause traffic to go over a lower priority interface. See that issue
for a more detailed explanation of the problem.

It does this by:
        1) configuring NetworkManager to send DNS config to resolvconf, instead
           of writing to resolv.conf directly. In my (limited) testing, this
           seems to be necessary to get NM to trigger resolvconf which is
           needed for...
        2) configuring resolvconf to ignore any DNS it receives and use
           localhost, when writing resolv.conf

openresolv is used because the alternative of modifying resolv.conf
manually gets messy, specifically with apk where it may not replace
/etc/resolv.conf if the user / something else has modified it...

Note that there's still some possibilities for apps that have hardcoded DNS
nameservers to bypass dnsane. It's not trivial to catch this. The most straight
forward way is to use a firewall rule to redirect all outbound DNS to dnsane.
But this would break mmsd and any other apps that actually need to query
specific nameservers to function properly.

I used a SIM that had a mobile data connection, but traffic was dropped by the
carrier outside of the phone. In other words, my phone was often in the exact
situation described in #1430. When connected to wifi, I could very easily
notice when traffic was being routed incorrectly because anything destined for
mobile data would fail (pages stopped loading, etc). After some amount of
casual testing while using the phone "normally", I haven't noticed any failures
yet from that problem.
2023-01-13 13:58:42 -08:00
Caleb Connolly 7ac2abf20b community/linux-postmarketos-qcom-sdm845: apply audio fix (MR 3800)
Fix APR q6voice nodes which broke audio on 6.1.3
https://gitlab.com/sdm845-mainline/linux/-/commit/a5312556efefb2d93385681687a54fc5f6862c32

[ci:skip-build]: Already built successfully in CI
2023-01-11 22:34:55 +01:00
Clayton Craft bca632d4f6 postmarketos-base: enable using zram swap by default (MR 3752)
This installs zram-init and sets it to start on boot for all
devices/UIs. The included conf.d/zram-init also allows diabling using
zram swap or overriding the size by using a deviceinfo var.

I did an analysis of the pmos base install size with the 'none' UI
selected, after depending on zram-init, and the following new package is
installed:
        zram-init-11.1-r1 installed size: 40 KiB

These packages are dependencies of zram-init, however they are already
installed in the base image (with 'none' UI) so they are not counted
above:
        util-linux-misc-2.38.1-r0 installed size: 6816 KiB
        e2fsprogs-extra-1.46.5-r4 installed size: 1324 KiB

So this seems like a very small price to pay for the benefit of not
making the logic/implementation more complicated than this.

     * Starting busybox syslog ... [ ok ]
    ssh-keygen: generating new host keys: RSA ECDSA ED25519
     * Starting sshd ... [ ok ]
    zram swap: activating with size: 243 MB
     * Loading zram module...
     [ ok ]
     * Swap->zram0
     [ ok ]
     * Starting local ... [ ok ]

This change introduces one new deviceinfo variable:
deviceinfo_zram_swap_pct: percentage of RAM to use for zram swap

Default percentages if the second var is unset are explained in the
zram-init file this commit adds. A value of 0 disables zram swap.

fixes #1133
2023-01-11 15:39:40 +01:00
Oliver Smith 0569fdd9f8 cross/binutils-*: upgrade to 2.39-r3 (MR 3798)
[ci:skip-build]: Already built successfully in CI
2023-01-11 15:24:47 +01:00
Anton Bambura 75f91b45de linux-postmarketos-exynos5: use postmarketos-installkernel (MR 3751)
[ci:skip-build]: already built successfully in CI
2023-01-10 13:35:59 +01:00
M0Rf30 fde3200e27 linux-postmarketos-qcom-msm8953: upgrade to 6.1.0 (MR 3759)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
[ci:skip-build]: already built successfully in CI
2023-01-10 13:11:32 +01:00
Adel Ahmed adf2d837af sony-leo: add mainline kernel (MR 3770)
[ci:skip-build]: already built successfully in CI
2023-01-10 13:06:32 +01:00
Oliver Smith a64a9a1ca0 main/msm-firmware-loader: upgrade to 1.1.0 (MR 3797)
[ci:skip-build]: already built successfully in CI
2023-01-10 12:06:52 +01:00
Oliver Smith 166acbc194 cross/gurb-efi-x86: upgrade to 2.06-r7 2023-01-09 15:43:47 +01:00
Oliver Smith 2bcb2246ce cross/gcc-*: upgrade to 12.2.1_git20220924-r8 2023-01-09 15:43:42 +01:00
Clayton Craft c3669975e9 purism-librem5: disable power management for Sparklan/brcmfmac wifi (MR 3793)
This wifi module doesn't ship with the L5, but I have one because it's
generally more stable than the redpine thing that does ship with the
L5... however there's a known problem with having PM enabled on it.

This adds a NM config option, that matches specifically on this
device/driver, to disable wifi. PM for the redpine should not be
affected by this config change.

[ci:skip-build] already built successfully in CI
2023-01-08 13:56:25 -08:00
Clayton Craft 152f8e4715 main/unl0kr: add to initramfs-extra (MR 3777)
This moves unl0kr and all of its dependencies into the initramfs-extra,
it does so by using a relatively new mkinitfs feature for installing
files into the -extra archive.

[ci:skip-build] already built successfully in CI
2023-01-08 11:04:41 -08:00
Clayton Craft d27e1bd65d main/pmos-mkinitfs: run udev after mounting the initramfs-extra (MR 3777)
By positioning this after extracting the initramfs-extra archive, we can
allow udev to exist in the -extra archive and not have any size impact
on the base initramfs archive.

Any hook that needs udev in the initramfs can get that support, provided
that the hook lists udev requirements in the .files config for it.
2023-01-08 11:04:41 -08:00
Marc0x1 35659b6b0d xunlong-orangepi-pc: new device (MR 3785) 2023-01-08 18:41:54 +01:00
Luca Weiss af198149e0 cross/gcc-*: upgrade to 12.2.1_git20220924-r7 (MR 3794) 2023-01-08 12:03:22 +01:00
Luca Weiss fa915996b0 cross/busybox-static-*: upgrade to 1.35.0-r30 (MR 3794) 2023-01-08 12:02:06 +01:00
Alexander Martinz 64b0044426 community/linux-postmarketos-qcom-sdm845: upgrade to 6.1.3 (MR 3782)
For a merge list, please see the merge commits:
  - 6.1.1  - (https://gitlab.com/sdm845-mainline/linux/-/commit/5ed7044b056ca68cf4756e4be225d220a0e386b3)
  - 6.1.2  - (https://gitlab.com/sdm845-mainline/linux/-/commit/ec165d9c018716c6e3510fe6ad7aed70d338a8c1)
  - 6.1.3  - (https://gitlab.com/sdm845-mainline/linux/-/commit/3735d5032c1ada943251fb08cfe9b879197e802d)

Change-Id: Id46e827a90a9c68cb69d23dc0698a8ea2a5e4336
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>

[ci:skip-build] already built successfully in CI
2023-01-07 23:15:13 -08:00
Anton Bambura 594fe30620 google-veyron-minnie: switch to depthcharge and extlinux (MR 3789)
Make use of stock depthcharge bootloader to not deal with U-Boot issues:
- broken USB
- broken eMMC
- broken latest version of U-Boot

Use extlinux instead of Grub for users with U-Boot to simplify process.
Also, some of old U-Boot builds may not support EFI.

[ci:skip-build] already built successfully in CI
2023-01-07 22:48:23 -08:00
Anton Bambura 93a6d69fe8 google-spring: new device (MR 3788)
[ci:skip-build] already built successfully in CI
2023-01-07 22:44:30 -08:00
Anton Bambura 8730f20fc9 google-veyron-speedy: switch to depthcharge and extlinux (MR 3786)
Make use of stock depthcharge bootloader to not deal with U-Boot issues:
 - broken USB
 - broken eMMC
 - broken latest version of U-Boot

Use extlinux instead of Grub for users with U-Boot to simplify process.
Also, some of old U-Boot builds may not support EFI.

[ci:skip-build] already built successfully in CI
2023-01-07 22:42:10 -08:00
Anton Bambura 98284111ed google-kevin: add extlinux (MR 3787)
[ci:skip-build] already built successfully in CI
2023-01-07 22:40:20 -08:00
Anton Bambura 4f27e36d60 google-bob: add extlinux (MR 3787) 2023-01-07 22:40:20 -08:00
Anton Bambura 33594e6d6d lg-c50: new device (MR 3783)
[ci:skip-build]: already built successfully in CI
2023-01-06 22:22:52 +01:00
Raymond Hackley c0db634e92 main/postmarketos-base-ui: networkmanager: depends on networkmanager{,-*} (MR 3749)
[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-01-06 21:53:28 +01:00
Jan Jasper de Kroon 314d1e58c3 device/main/linux-postmarketos-allwinner: upgrade to 6.1.3_git20230104 (MR 3781)
[ci:skip-build]: already built successfully in CI
2023-01-06 21:31:46 +01:00
Anton Bambura 40a3650f23 google-veyron-tiger: new device (MR 3772)
[ci:skip-build]: already built successfully in CI
2023-01-06 21:28:38 +01:00
Anton Bambura 01b684f271 google-veyron-mighty: new device (MR 3772) 2023-01-06 21:28:22 +01:00
Anton Bambura bee023cc1c google-veyron-mickey: new device (MR 3772) 2023-01-06 21:28:22 +01:00
Anton Bambura 1466b2be98 google-veyron-jaq: new device (MR 3772) 2023-01-06 21:28:21 +01:00
Anton Bambura 5945753142 google-veyron-fievel: new device (MR 3772) 2023-01-06 21:28:15 +01:00
Anton Bambura 47e1660711 google-dumo: new device (MR 3748)
[ci:skip-build]: already built successfully in CI
2023-01-05 04:03:45 +01:00
Anton Bambura 213913c122 google-druwl: new device (MR 3748) 2023-01-05 04:03:36 +01:00
Anton Bambura bbf6fa2e71 google-dru: new device (MR 3748) 2023-01-05 04:03:31 +01:00
Andreas Kemnade 7b35230958 linux-kobo-clara-mainline: upgrade to 6.1 (MR 3764)
use already the touchscreen driver which is accepted for
6.2

[ci:skip-build]: already built successfully in CI
2023-01-05 03:55:56 +01:00
exkc 09670b7395 mangopi-mq-pro: new device (MR 3761)
[ci:skip-build]: already built successfully in CI
2023-01-05 03:51:58 +01:00
exkc eea97fa1a8 linux-postmarketos-allwinner-d1: new aport (MR 3761) 2023-01-05 03:51:58 +01:00
exkc 66c863af81 u-boot-mangopi-mq-pro: new aport (MR 3761) 2023-01-05 03:51:58 +01:00
Anton Bambura 33254c4d19 aarch64 chromebooks: add $deviceinfo_depthcharge_board to deviceinfo (MR 3724)
This is needed to use depthchargectl instead of mkdepthcharge

[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-01-05 03:49:21 +01:00
Anton Bambura b243969ea7 pine64-pinephonepro: use generated grub.cfg (MR 3724) 2023-01-05 03:49:15 +01:00
Anton Bambura 33c59fc7fa pine64-pinebookpro: use generated extlinux.conf (MR 3724) 2023-01-05 03:49:15 +01:00
Anton Bambura d59be3b0ea main/boot-deploy: upgrade to 0.7.0 (MR 3724) 2023-01-05 03:49:10 +01:00
Julian Winkler f3b5419349 motorola-smi: new device (Motorola RAZR i) (MR 3774)
[ci:skip-build]: already built successfully in CI
2023-01-05 03:37:38 +01:00
Julian Winkler 1e9be758ea linux-postmarketos-intel-medfield: new kernel for Intel Medfield (MR 3774) 2023-01-05 03:37:24 +01:00
Newbyte e756db4ba3 linux-postmarketos-stericsson: upgrade to 6.1 (MR 3730)
Also enable MGLRU.

[ci:skip-build]: already built successfully in CI
2023-01-05 02:58:11 +01:00
Cédric Bellegarde fb119cc8e2 main/postmarketos-ui-phosh: clean up dconf overrides (MR 3775)
[ci:skip-build]: already built successfully in CI
2023-01-05 02:48:34 +01:00
Petr Vorel ca20cbcaf4 linux-postmarketos-qcom-msm8994: upgrade to 6.1.2 (MR 3762)
New features:
* msm8994-huawei-angler: Add sdhc1 definition (internal SD card).

Backporting 3 patches:
* 0001-arm64-dts-msm8992-bullhead-add-memory-hole-region.patch
fixes bullhead boot since 6.0-rc1, already in qcom tree

* 0002-arm64-dts-qcom-msm8992-bullhead-Fix-cont_splash_mem-.patch
memory fix, likely to be merged

* 0003-arm64-dts-qcom-msm8992-bullhead-Disable-dfps_data_me.patch
memory fix, likely to be merged

* 0004-arm64-dts-qcom-msm8992-Don-t-use-sfpb-mutex.patch
memory fix, likely to be merged

* 0005-arm64-dts-msm8994-angler-fix-the-memory-map.patch
fixes angler reset during starting services in rootfs,
likely to be merged

Remove all backported commits from newer versions.

While at it, remove various CONFIG_NET_VENDOR_.* and
CONFIG_MSM_.* and CONFIG_.*_QCOM_.* for other SOCs.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
[ci:skip-build]: already built successfully in CI
2023-01-05 00:38:16 +01:00
André Apitzsch 383bdab043 bq-piccolo: add remote processor switch (MR 3780)
[ci:skip-build]: already built successfully in CI
2023-01-04 23:33:17 +01:00
Luca Weiss e07103fb74 testing/linux-postmarketos-qcom-msm8974: upgrade to 6.0.13 (MR 3658)
Manual config changes:
* CRYPTO_DEV_QCOM_RNG=m
* LEDS_IS31FL319X=m
* QCOM_RMTFS_MEM=y

[ci:skip-build]: already built successfully in CI
2022-12-29 19:31:45 +01:00
Affe Null 8141d4f90f linux-postmarketos-qcom-msm8909: remove (MR 3768)
Support for msm8909 devices has been merged into msm8916-mainline

[ci:skip-build]: already built successfully in CI
2022-12-29 18:41:16 +01:00
Affe Null ac7fc0276b nokia-leo: new device (MR 3768)
Initial port using msm8916-mainline kernel
2022-12-29 18:41:16 +01:00
Affe Null a722471215 nokia-sparkler: new device (MR 3768)
Initial port using msm8916-mainline kernel
2022-12-29 18:41:16 +01:00
Affe Null 3695a9246a nokia-argon: add modem support and switch to msm8916-mainline kernel (MR 3768) 2022-12-29 18:41:16 +01:00
Affe Null 66982061a1 soc-qcom-msm8909: new aport (MR 3768)
Shared SoC package for MSM8909

Currently provides a dummy soc-qcom-msm8909 package that depends on
soc-qcom-msm8916 and a soc-qcom-msm8909-modem package for modem support.
2022-12-29 18:40:55 +01:00
Affe Null 75cd718f5c modem/rmtfs: add tunning partition alias patch for msm8909 Nokia devices (MR 3768)
Like alcatel-idol3, these devices have a tunning partition. However, the
modem calls it modem_tng instead of modem_tunning. This patch adds the
alternative name for the partition.

An upstream pull request has already been submitted (see patch).
2022-12-29 18:40:12 +01:00
Luca Weiss ac073485e0 fairphone-fp3: add swlock-offset, make msm-fb-refresher downstream-only (MR 3767)
Since the RTC like on most Qualcomm chips is read-only, use
swclock-offset package to fix up time after boot.

And since we don't need msm-fb-refresher on mainline, move it to the
downstream kernel subpackage.
2022-12-29 18:22:48 +01:00
Luca Weiss ce8f4219d2 fairphone-fp2: add swclock-offset dependency (MR 3767)
The device has a standard read-only Qualcomm RTC, so time without
swclock-offset will always be wrong after reboot.
2022-12-29 18:22:48 +01:00
Raymond Hackley ecc98c26de samsung-grandmax: move to community (MR 3696)
Like samsung-e7, samsung-grandmax works quite well. Move it to community.

[ci:skip-build] already built successfully in CI
2022-12-29 18:17:41 +01:00
Andreas Kemnade f046cd5d1b kobo-librah2o: new device (MR 2954)
Basic support for the Kobo Libra H2O ebook reader.

Waveform handling shares the same oddities as for the Kobo Clara HD, the
existing waveform from eMMC is used.

Preferred way to install is to export the eMMC as USB Mass storage,
backing it up, and installing there.

U-Boot is a more recent one than the factory u-boot, supporting easy
access for buttons/LEDs. Pressing PageUp while powering on gives you the
possibility to enable USB mass storage mode to restore your backup.

Kernel is the near mainline kernel also used by the Kobo Clara HD.

It lacks some devicetree additions which are planned for the next
update, but basic things like buttons, usb, serial and wifi are
supported.
2022-12-29 18:07:51 +01:00
Sicelo A. Mhlongo a787222aeb postmarketos-ui-i3wm: use tinydm and relocate device-specific file (MR 3769)
* lock.sh is specific to Nokia N900, so move to device-nokia-n900
* use tinydm instead of lightdm

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-12-29 17:57:38 +01:00
Alistair Francis 22e26ced4f linux-purism-librem5: upgrade to 6.1.1pureos1 (MR 3758)
Signed-off-by: Alistair Francis <alistair@alistair23.me>
[ci:skip-build]: already built successfully in CI
2022-12-29 17:50:52 +01:00
Oliver Smith aebf7d2898 temp/megapixels-purism: bump pkgrel (MR 3771)
Fix for:
  missing depend(s): so:libcamera.so.0.0.2

[ci:skip-build]: already built successfully in CI
2022-12-29 17:47:26 +01:00
Oliver Smith 3afcd215a7 main/postmarketos-ui-plasma-desktop: move some deps to extra (MR 3756)
Move some dependencies from plasma-desktop to the -extras subpackage, so
they don't get installed by default:

* audiocd-kio (2 MiB): using a CD drive with postmarketOS seems to be a
  very rare combination
* kolourpaint (3 MiB): very basic image editor with featureset of MS
  paint, I don't think it's that useful in a default install. Users
  looking for an image editor may want to use e.g. krita instead and can
  install whatever they want to use after the default install is done.
* kwrite (20 MiB): another text editor, kate (3 MiB), is already getting
  installed by default
* okular (81 MiB): quite big, and pdfs can also be viewed in firefox
  which we install by default
* mesa-demos (50 MiB): rather big for just being some graphical demos

It's always a good idea to keep the install image small, but in this
instance the change was prompted because we currently hit a size limit
when generating install images. In particular, when generating the
v22.12 image for the pinebookpro. The process for generating install
images is not optimized for size (see bpo issue 116) and this should be
improved, but in the meantime let's just reduce the install size with
this patch on edge and backport it to v22.12 so building this image
doesn't fail anymore.

Sizes listed above are for aarch64 and include dependencies that get
removed together with removing the package.
2022-12-29 17:35:09 +01:00
M0Rf30 595821f808 xiaomi-vince: remove downstream kernel and unuseful resources (MR 3760)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-12-29 17:32:29 +01:00
Oliver Smith 05030c7cfe channels.cfg: mark v22.12 as released 2022-12-22 23:31:12 +01:00
Oliver Smith 6c06572dba cross/gcc-*: upgrade to 12.2.1_git20220924-r6 2022-12-22 23:08:55 +01:00
Alistair Francis 9183be336b linux-purism-librem5: Add 166MHz to DDRC OPP table (MR 3754)
Backport the Purism patch from https://source.puri.sm/Librem5/linux/-/merge_requests/640

"With this patch, older revisions (2.0) should be able to switch between
166MHz and 800MHz as opposed to being stuck to 800MHz all the time, since
that was the only supported frequency in the OPP table."

Signed-off-by: Alistair Francis <alistair@alistair23.me>

[ci:skip-build] already built successfully in CI
2022-12-20 12:17:16 -08:00
Minecrell 04c166cdde firmware-motorola-osprey: package wcnss firmware for harpia (MR 3746)
The WCNSS firwmare used for motorola-harpia seems to have weird issues
that prevent using WiFi properly except for a few limited channels. It
is not clear why this happens, it seems to be some peculiar firmware
difference (perhaps the channels need to be enabled with some
non-standard command).

Since Motorola uses the same signing keys for all their MSM8916
devices, it is possible to use the firmware from other devices instead.
Initial testing shows promising results when using the older WCNSS
firmware from motorola-osprey instead, it does not seem to have this
issue.

It's not clear yet if this has any negative effects. The WCNSS firmware
should not be device-specific, but theoretically it could be (if
Motorola made some weird changes inside it).

For now just package it in firmware-motorola-osprey-wcnss. This package
can be easily installed on harpia devices for testing (using apk add)
and will then take precendence over the default firmware from the
firmware partition (via msm-firmware-loader).

Move firmware-motorola-osprey from testing to community so that the
package is preserved for motorola-harpia users (testing is deleted in
stable branches).

[ci:skip-build]: already built successfully in CI
2022-12-20 08:30:15 +01:00
Minecrell 2f315e3b72 motorola-osprey: use device-specific WCNSS_qcom_wlan_nv.bin (MR 3746)
motorola-osprey can generally use the firmware from motorola-harpia
(which is a bit newer). However, the WCNSS_qcom_wlan_nv.bin is usually
device specific (it contains some kind of calibration values for
WiFi/BT).

The file packaged in firmware-motorola-osprey-wcnss-nv is identical to
the file in firmware-motorola-harpia-wcnss-nv. However, It looks a bit
like this might be a mistake in the source repository
(https://github.com/pmsourcedump/firmware-motorola-osprey). The
wlan/prima folder there is completely identical to the one used for
motorola-harpia, but the stock ROM and LineageOS use different files.

Fix this by packaging the file from TheMuppets. Also modernize the
firmware-motorola-osprey package by applying pil-squasher to the
venus/video firmware.
2022-12-20 08:29:57 +01:00
Minecrell 047a8ba6dc motorola-osprey: restore firmware package (MR 3746)
This reverts parts of commit 9c8a189e6d
("motorola-osprey: use firmware from harpia (MR 2613)").
2022-12-20 08:29:57 +01:00
Minecrell 7273c5d1b3 motorola-osprey: rename to Motorola Moto G 2015 (MR 3746)
motorola-osprey has a very clunky name at the moment "Motorola Moto G
3rd gen. (2015)". The device was mostly just called "Motorola Moto G"
by Motorola, so it is hard to choose a fitting (but unique) name.

In the postmarketOS wiki it is called "Motorola Moto G 2015" so let's
just drop the "3rd gen." in the pmOS device package as well.

Also make the deviceinfo consistent with harpia while at it.
2022-12-20 08:29:47 +01:00
Anton Bambura a4a0451269 google-bob: new device (MR 3747)
cros-ec-sensorhub is blocked because of wrong accelerometer mount matrix
2022-12-20 08:23:04 +01:00
Kabir Akzaman 891109adce samsung-j7elte: new device (Samsung Galaxy J7) (MR 3715)
[ci:skip-build] already built successfully in CI
2022-12-19 22:37:58 -08:00
Elagost fd90572c61 postmarketos-base: replace sudo with cmd:sudo (MR 3721)
[ci:skip-build] already built successfully in CI
2022-12-18 13:23:33 -08:00
Oliver Smith 7d673c4301 main/postmarketos-release-upgrade: upgrade to 1.3.1 (MR 3750)
[ci:skip-build]: already built successfully in CI
2022-12-18 14:55:09 +01:00
Anjandev Momi 8c466207dd main/sxmo-common: allow switching between pipewire and pulseaudio (MR 3711)
Users can switch to pulseaudio with:
  doas apk add sxmo-audio-common-pulse

We can make the poco f1 device APKBUILD depend on
sxmo-common-audio-pulse. This allows you to install pulseaudio on Sxmo
which was the reason Joel said the poco f1 was having issues with call
audio: https://gitlab.com/postmarketOS/pmaports/-/issues/1821

After installing pulseaudio with this patch, the other side still
cannot hear me. I am posting this work so that others can just run
pulseaudio on sxmo and find out what's causing this bug.

Note by ollieparanoid: while it doesn't fix the bug completely, it seems
it's required to make calling work again, something we definitively want
to have in v22.12 so I'm merging this now. Also the sxmo-utils patch was
merged to sxmo-utils upstream, but isn't in alpine yet. Adding this
package (previous patch) temporarily makes sense.

Co-developed-by: Oliver Smith <ollieparanoid@postmarketos.org>
[ci:skip-vercheck]: pkg forked from alpine has pkgrel > 0
[ci:skip-build]: already built successfully in CI
2022-12-18 14:36:21 +01:00
Anjandev Momi 3ff8cfa528 temp/sxmo-utils: patch to support pulseaudio (MR 3711)
This package is just forked from alpine upstream and patched to support
pulseaudio. This patch should be upstreamed to sxmo but posting here so
that others can help me figure out why audio calls with poco f1 and Sxmo
are broken:

https://gitlab.com/postmarketOS/pmaports/-/issues/1821
2022-12-18 14:34:23 +01:00
M0Rf30 7125b75b68 linux-postmarketos-qcom-msm8953: upgrade to 6.0.10 (MR 3697)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>

[ci:skip-build]: Already built successfully in CI
2022-12-18 13:35:22 +01:00
M0Rf30 0a74080b08 xiaomi-vince: command-line cleanup and panels enablement (MR 3697)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
2022-12-18 13:35:17 +01:00
Jan Jasper de Kroon 2707def9f8 device/main/linux-postmarketos-allwinner: Switch to CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL (MR 3720)
Schedutil is a CPU scheduler that is designed to be more efficient than other schedulers, such as the conservative scheduler, in terms of energy consumption.
This is because schedutil uses information about the utilization of individual CPU cores to make more intelligent decisions about when and how to scale the frequency of the CPU.
This can help to reduce the overall power consumption of the device, which can be particularly beneficial for battery-powered devices.
Additionally, schedutil can also help to improve the overall performance of the device by ensuring that the CPU is able to operate at its maximum frequency when needed.

In my personal testing I haven't seen any noticable impact on power consumption, while the performance does certainly noticeably increase
Note: This is only a change in the aarch64 configuration as the armv7 configuration already used the schedutil scheduler as default.

[ci:skip-build]: Already built successfully in CI
2022-12-18 13:32:22 +01:00
Raffaele Tranquillini 1bb85eecbd cutiepi-tablet: new device (MR 3737)
This adds initial support to CutiePi tablet, with basic peripherals, sound, touchscreen, and wireless support.

Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>

Add peripheral overlays

Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>

[ci:skip-build]: Already built successfully in CI
2022-12-18 13:13:19 +01:00
Jan Jasper de Kroon 433e4155f1 device/community/linux-pine64-pinephonepro: Switch to CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL (MR 3719)
Schedutil is a CPU scheduler that is designed to be more efficient than other schedulers, such as the conservative scheduler, in terms of energy consumption.
This is because schedutil uses information about the utilization of individual CPU cores to make more intelligent decisions about when and how to scale the frequency of the CPU.
This can help to reduce the overall power consumption of the device, which can be particularly beneficial for battery-powered devices.
Additionally, schedutil can also help to improve the overall performance of the device by ensuring that the CPU is able to operate at its maximum frequency when needed.

In my personal testing I haven't seen any noticable impact on power consumption, while the performance does certainly noticeably increase

[ci:skip-build]: Already built successfully in CI
2022-12-18 13:05:10 +01:00
André Apitzsch 9cbee8fda5 bq-piccolo: fix Phosh scaling (MR 3732) 2022-12-18 12:59:41 +01:00
André Apitzsch 4531d7695c bq-piccolo: add FDE support (MR 3732) 2022-12-18 12:59:41 +01:00
André Apitzsch 0dfce721cc bq-piccolo: use msm-firmware-loader (MR 3732) 2022-12-18 12:59:41 +01:00
André Apitzsch dbff2ff79a bq-piccolo: depend on linux-postmarketos-qcom-msm8916 (MR 3732) 2022-12-18 12:59:41 +01:00
BO41 f2bc2753ff huawei-kiwi: use msm-firmware-loader (MR 3736) 2022-12-18 12:54:00 +01:00
BO41 a35a23e11a huawei-kiwi: depend on linux-postmarketos-qcom-msm8916 (MR 3736) 2022-12-18 12:54:00 +01:00
Vincent Knecht 673dae7860 alcatel-idol3: depend on linux-postmarketos-qcom-msm8916 (MR 3738)
Use msm8916 kernel package instead of linux-postmarketos-qcom-msm8939
Also remove rmi_core from deviceinfo_modules_initfs
since it's automatically pulled by rmi_i2c
2022-12-18 12:48:28 +01:00
André Apitzsch 02d45f3a5e main/*: rebuild for Python 3.11 (MR 3745) 2022-12-18 10:26:36 +01:00
Luca Weiss ec0d98e9be community/linux-postmarketos-qcom-sm6350: upgrade to 6.1.0 (MR 3741)
* Enable flash/torch LED (CONFIG_LEDS_QCOM_FLASH)
* Fix USB init when not plugged in during bootloader stage

[ci:skip-build] already built successfully in CI
2022-12-17 01:44:14 -08:00
Oliver Smith 148967f00b temp/megapixels-*: bump pkgrel (MR 3740)
Fix for:
  missing depend(s): so:libtiff.so.5

[ci:skip-build] already built successfully in CI
2022-12-17 01:42:07 -08:00
Clayton Craft 1f2aab3a86 linux-purism-librem5: update to 6.1.0pureos1 (MR 3725)
Most of the config diff is from rebasing the kconfig in pmaports with
mainline + purism changes

[ci:skip-build] already built successfully in CI
2022-12-16 23:37:02 -08:00
Joel Selvaraj 1191682ea6 community/linux-postmarketos-qcom-sdm845: upgrade to 6.1.0 (MR 3739)
[ci:skip-build]: already built successfully in CI
2022-12-16 10:59:53 +01:00
Anton Bambura 2f9f93db59 google-peach-pi: drop software rendering configs (MR 3734) 2022-12-15 02:41:48 +02:00
Anton Bambura c92b3e8cf8 google-peach-pit: drop software rendering configs (MR 3734) 2022-12-15 02:41:44 +02:00
Oliver Smith b057815623 temp/megapixels-purism: bump pkgrel (MR 3733)
Fix for:
  missing depend(s): so:libcamera.so.0.0.1

[ci:skip-build]: already built successfully in CI
2022-12-14 21:44:28 +01:00
Oliver Smith 16b24bb86f main/mobile-config-firefox: upgrade to 3.2.0 (MR 3729)
[ci:skip-build]: already built successfully in CI
2022-12-14 21:18:15 +01:00
Mas Ahmad Muhammad bee146fb1f lenovo-a6010: add panel-wingtech-qimei-ili9881 (MR 3574)
Signed-off-by: Mas Ahmad Muhammad (m.charly81@gmail.com)
2022-12-14 17:53:00 +01:00
Mas Ahmad Muhammad 6e867c57ec lenovo-a6000: add panel-wingtech-qimei-ili9881 (MR 3574)
Signed-off-by: Mas Ahmad Muhammad (m.charly81@gmail.com)
2022-12-14 17:53:00 +01:00
Lux Aliaga 7aaee51a3e linux-postmarketos-qcom-sm6125: upgrade to 6.1 (MR 3727)
This is a version bump for the sm6125 mainline kernel fork.

Changes:
* Added UFS nodes to the sm6125 platform
* Enabled UFS nodes for xiaomi-laurel
* Enabled configs required for UFS support (Notoriously
CONFIG_PHY_QCOM_QMP)
* Filled in EXTRAVERSION for kernel fork
* Added SMD RPM regulators for xiaomi-laurel

Signed-off-by: Lux Aliaga <they@mint.lgbt>

[ci:skip-build]: Already built successfully in CI
2022-12-14 17:41:57 +01:00
Lux Aliaga a27a7ce737 device-xiaomi-laurel: add missing deviceinfo parameters (MR 3727)
This commit adds sparse flashing and rootfs sector size to deviceinfo

Signed-off-by: Lux Aliaga <they@mint.lgbt>
2022-12-14 17:41:57 +01:00
Jan Jasper de Kroon b86f80890e device/community/linux-pine64-pinephonepro: upgrade v6.1 (MR 3713)
Fix included in this build:
- Patch which sets GPIO pin for stk3311 as input
- ppp: don't reset 'display state of charge' (dsoc) to 0 on vbat low interrupt

[ci:skip-build]: already built successfully in CI
2022-12-14 10:14:14 +01:00
Anton Bambura 10ff840e85 main/postmarketos-mkinitfs: resize root partition on Chrome OS devices (MR 3726)
[ci:skip-build]: already built successfully in CI
2022-12-14 10:07:39 +01:00
David Wronek d91cf7fdf4 xiaomi-surya: new device (MR 3706)
Add support for the Xiaomi POCO X3 NFC.

[ci:skip-build] already built successfully in CI
2022-12-13 22:14:46 -08:00
David Wronek 00bd9b7525 linux-postmarketos-qcom-sm7150: new aport (MR 3706)
Add an aport for the Qualcomm SM7150 mainline kernel.
2022-12-13 22:14:46 -08:00
Anton Bambura b97f685e4a linux-google-nyan: enable kconfigcheck-community (MR 3708)
[ci:skip-build] already built successfully in CI
2022-12-13 22:09:39 -08:00
Raymond Hackley d4ee51e6fb samsung-a7: depends on linux-postmarketos-qcom-msm8916 (MR 3722)
[ci:skip-build] already built successfully in CI
2022-12-13 21:36:18 -08:00
Jakob Hauser b402c03b1f main/swclock-offset: upgrade to 0.2.2 (MR 3714)
This upgrade has no effect on postmarketOS, as there were only systemd
service files added to the repository. The upgrade is done solely to
keep track with the newest version.

[ci:skip-build] already built successfully in CI
2022-12-13 21:31:17 -08:00
Minecrell 9784f1b83f community/linux-postmarketos-qcom-msm8916: upgrade to 6.1 (MR 3718)
- Update to Linux v6.1
- Initial support for MSM8905/MSM8909 and MSM8939 SoCs
- Various kernel configuration tweaks
  - Disabled support for system suspend since it provides little advantages
    at the moment and keeps causing trouble (device fails to wake up etc).

Device changes:
  - alcatel-idol347
    - Torch/indicator LEDs
  - samsung-a3 and a5
    - Vibrator
  - samsung-cprime and grandmax
    - Touchscreen
  - wingtech-wt865x8 (lenovo-a6000/a6010)
    - qimei-ili9881 panel driver
  - wingtech-wt88047 (xiaomi-wt88047)
    - Flash LED

New devices:
  - alcatel-idol3 (MSM8939)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display, Brightness control
    - Touchscreen
    - Sensors (Accelerometer, Magnetometer, Gyroscope, Proximity)
    - Sound/Modem
    - Battery/Charging
    - Torch/indicator LEDs
  - huawei-kiwi (MSM8939)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display, Brightness control
    - Touchscreen
    - Sensors (Accelerometer, Magnetometer, Proximity, Hall)
    - Sound
    - Indicator LEDs
  - longcheer-l9100 (bq-piccolo, MSM8939)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display, Brightness control
    - Touchscreen
    - Sensors (Accelerometer/Gyroscope/IMU, Magnetometer, Light, Hall)
    - Battery/Charging
    - Flash LED
  - samsung-a7 (MSM8939)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display (with some quirks)
    - Touchscreen, touch keys
    - Sensors (Accelerometer, Magnetometer, Hall)
    - Sound/Modem
    - Battery status
    - NFC
  - nokia-argon/leo/sparkler (MSM8905)
    - eMMC, SD card, USB, Keypad/Buttons, WiFi/BT, Vibrator (argon-only)
    - Display, Brightness control
    - Modem
    - Battery/Charging

[ci:skip-build] already built successfully in CI
2022-12-13 21:21:58 -08:00
M0Rf30 b92f2efff2 linux-samsung-herolte: change src repo and sync config with upstream (MR 3710)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-12-13 09:52:45 +01:00
Mithil Bavishi 32532c7530 linux-postmarketos-omap: upgrade to 6.1 (MR 3716)
Update the omap kernel to stable 6.1 release. This commit also contains a patch that
fixes broken usb, which should only be needed for versions 5.19 to 6.1 as later
releases will have a proper fix merged.

[ci:skip-build]: already built successfully in CI
2022-12-13 09:44:01 +01:00
Jami Kettunen 9e4a82a503 volla-mimameid: add support for close to mainline kernel (MR 3652)
[ci:skip-build] already built successfully in CI
2022-12-12 16:18:13 -08:00
Jami Kettunen a58ac8384e linux-postmarketos-mediatek-mt6768: new aport (6.1_rc5) (MR 3652)
This is an early mainline port for the MediaTek MT6763 Helio P65/G70/G8*
SoCs that boots with all 8 cores online, logs on display (simplefb) or
UART serial console, USB gadget mode facilitating netbooting
postmarketOS while tethered via RNDIS and PMIC enabling functions like
vibrator, power/volume keys.
2022-12-12 16:18:00 -08:00
Anton Bambura b8780e2cb6 linux-postmarketos-mediatek-mt8173: enable kconfigcheck-community (MR 3707)
[ci:skip-build]: already built successfully in CI
2022-12-11 21:00:27 +01:00
Richard Acayan e3ffc66577 google-sargo: add modem support (MR 3695)
The modem needs more firmware. Some firmware is in the modem partition
and needs to be loaded.

[ci:skip-build]: Already built successfully in CI
2022-12-10 23:30:59 +01:00
Richard Acayan 89a7cbc4df device/testing/linux-postmarketos-qcom-sdm670: upgrade to 6.0.11 (MR 3695) 2022-12-10 23:30:54 +01:00
Lux Aliaga d68c6de7a5 device-xiaomi-laurel: modify mantainer name (MR 3699)
Since I'm not going by the "mint" alias anymore, I've decided to fix
that on the APKBUILDs

Signed-off-by: Lux Aliaga <they@mint.lgbt>

[ci:skip-build]: Already built successfully in CI
2022-12-10 23:26:05 +01:00
Lux Aliaga fe3f50084b linux-postmarketos-qcom-sm6125: upgrade to 6.0 (MR 3699)
This is a version bump for the sm6125 mainline kernel fork. It should
also fix a config issue.

Changes:
* Made QUSB2 built-in instead of a module (Fixes USB connectivity
issues)
* Updates to xiaomi-laurel device tree to fit new schema
* Changed maintainer name

Signed-off-by: Lux Aliaga <they@mint.lgbt>
2022-12-10 23:25:59 +01:00
Alistair Francis bb359dfc4f purism-librem5: add alistair23 as co-maintainer (MR 3705)
Signed-off-by: Alistair Francis <alistair@alistair23.me>

[ci:skip-vercheck]
[ci:skip-build] already built successfully in CI
2022-12-10 11:17:39 -08:00
Clayton Craft 280605a1f9 *-purism-librem5: remove Bhushan as co-maintainer (MR 3705)
He is not actively maintaining this device in pmOS
2022-12-10 11:11:13 -08:00
Alistair Francis d737c7757e device/main/u-boot-librem5: upgrade to 2022.10 (MR 3704)
Update to the latest release from Purism.

Signed-off-by: Alistair Francis <alistair@alistair23.me>

[ci:skip-build] already built successfully in CI
2022-12-09 14:55:43 -08:00
Bobby The Builder 61c985a901 pine64-pinephonepro: add --test-quick-suspend-resume to ModemManager (MR 3701)
Prevent losing the Modem after a resume

[ci:skip-build]: already built successfully in CI
2022-12-09 18:35:48 +01:00
Bobby The Builder 575bbc458e pine64-pinephonepro: enhance mic sensitivity (MR 3701) 2022-12-09 18:35:36 +01:00
Joel Selvaraj cba716d2ec community/soc-qcom-sdm845: update alsa ucm conf (MR 3702)
Update ucm conf to latest commit. Fixes headphones volume too high issue.

[ci:skip-build]: already built successfully in CI
2022-12-09 08:17:55 +01:00
Clayton Craft 4c5c74bb8a purism-librem5: use gnss-share with geoclue (MR 3698)
This fixes gnss out of the box on the librem 5, by configuring geoclue
to use gnss-share as a nmea source.

I went this route, of overriding a .service file that invokes geoclue
with a command line option, because forking this .service file is much
nicer than forking geoclue.conf. The conf file will likely change over
time to add new app permissions or whatever, and it's unlikely
(hopefull!) that this .service file will change much upstream...

[ci:skip-build] already built successfully in CI
2022-12-08 22:56:53 -08:00
Jan Jasper de Kroon 1542dbfb9d device/main/linux-postmarketos-allwinner: upgrade to 6.1.0_rc7_git20221205 (MR 3694)
Contains the following fix:
- don't reinitialize bluetooth on Pinephone during resume

[ci:skip-build]: already built successfully in CI
2022-12-07 21:15:33 +01:00
Bobby The Builder c7dc9e5fc3 linux-pine64-pinephonepro: Enable on-boot USB network initialization (MR 3688)
CONFIG_USB_GADGET=y
   CONFIG_USB_DWC3_DUAL_ROLE=y
   CONFIG_USB_XHCI_HCD=y
   CONFIG_USB_XHCI_PLATFORM=y
   CONFIG_USB_DWC2=y
   remove un-necessary activated configs

[ci:skip-build]: already built successfully in CI
2022-12-07 20:54:43 +01:00
Sicelo A. Mhlongo fcc93a83df linux-nokia-n900: upgrade to lts 5.15.81 (MR 3692)
- Upgrade to linux 5.15.81
- Remove SPI driver for accelerometer to stop unnecessary dmesg output

[ci:skip-build]: already built successfully in CI
2022-12-07 09:52:35 +01:00
Raymond Hackley d6cb995b99 main/postmarketos-base: add regulator-haptic udev rules (MR 3691)
Add rules for regulator-haptic, which is used on:
- samsung-e5/e7
- samsung-cprime/gprime
- samsung-j3/j5(x)

Note that regulator-haptic is not supported on some devices yet,
and samsung-e5 is not ported at the moment.

[ci:skip-build]: already built successfully in CI
2022-12-07 09:46:19 +01:00
Jan Jasper de Kroon d8be6416d2 device/community/linux-pine64-pinephonepro: Upgrade to 6.1-rc8 (MR 3685)
- Also enabled LRU_GEN by default like on the PinePhone OG
- Set Ext4 module to built-in as this currently is the main fs used for PPP.
Contains the following patch:
- pinephone pro: finished fix for LCD to make it refresh at precisely 60 Hz

[ci:skip-build]: already built successfully in CI
2022-12-07 09:35:20 +01:00
Oliver Smith fc5d3bdd60 cross/gcc-*: upgrade to 12.2.1_git20220924-r5 2022-12-06 09:05:19 +01:00
Oliver Smith 594304eb29 main/postmarketos-release-upgrade: upgrade to 1.3.0 (MR 3690) 2022-12-05 08:00:07 +01:00
Newbyte ab590f2186 linux-postmarketos-exynos4: reduce boot image size (MR 3656)
Otherwise it doesn't fit the small kernel partition on some exynos4
devices (such as samsung-p4note).

Closes https://gitlab.com/postmarketOS/pmaports/-/issues/1785

[ci:skip-build]: Already built successfully in CI
2022-12-04 18:14:55 +01:00
Dzmitry Sankouski fc08a804bc testing/u-boot-starqltechn: update u-boot version and new patches (MR 3679)
Add new patches:
- enable serial console
- save relocation address to find KASLR
- buttons as keyboard input driver to navigate bootmenu
- bootmenu loop entry selection
2022-12-03 12:10:27 +01:00
Jan Jasper de Kroon 7c7c18e40f device/main/linux-postmarketos-allwinner: Enabe LRU_GEN by default (MR 3686)
MGLRU seeks to address Linux's poor page reclamation behavior with this new high performance LRU implementation to over-commit memory.
MGLRU has shown to be beneficial in a variety of benchmarks especially on memory constrained systems.

Some benchmarks:
- https://www.phoronix.com/news/Linux-MGLRU-v9-Promising
- https://www.phoronix.com/news/MGLRU-Reaches-mm-stable

[ci:skip-build]: Already built successfully in CI
2022-12-03 12:06:44 +01:00
Luca Weiss 6981fb47b6 community/firmware-fairphone-fp4: move from testing (MR 3687)
I missed moving this package when moving the device package to
community.

[ci:skip-vercheck]
2022-12-03 11:56:45 +01:00
M0Rf30 aa9127f92c linux-postmarketos-qcom-sdm660: upgrade to 6.0.10 (MR 3668)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-12-02 08:57:36 +01:00
M0Rf30 eb2dd0b952 xiaomi-tulip: new device (Xiaomi Redmi Note 6 Pro) (MR 3668)
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
2022-12-02 08:57:27 +01:00
Mithil Bavishi b7fd6c90b0 linux-postmarketos-omap: update config (MR 3653)
[ci:skip-build]: already built successfully in CI
2022-12-02 08:50:52 +01:00
Mithil Bavishi 91035012b1 device: New device samsung-espresso10 2022-12-02 08:50:48 +01:00
Mithil Bavishi c45c27008c device-samsung-espresso3g: Rename to espresso7 2022-12-02 08:50:47 +01:00
Mithil Bavishi 85f9a49ad6 samsung-espresso10: move downstream pieces to unmaintained 2022-12-02 08:50:43 +01:00
Henrik Grimler a0678836a1 linux-postmarketos-exynos5: use exynos5-mainline repo to get src (MR 3675)
Patches are merged in that repo, so we then no longer have to keep
them in the pmaports repo.

[ci:skip-build]: already built successfully in CI
2022-12-02 08:42:01 +01:00
Anton Bambura a85c880974 linux-postmarketos-exynos5: add kconfigcheck-community (MR 3675) 2022-12-02 08:41:48 +01:00
Clayton Craft 4f712b5771 linux-purism-librem5: upgrade to 6.0.8 (MR 3684)
[ci:skip-build]: already built successfully in CI
2022-12-02 07:27:12 +01:00
Clayton Craft 584337aa82 purism-librem5: upgrade to latest ucm, fix udev rule installation (MR 3684)
Apparently upstream names udev rules with the .udev extension... which
doesn't work with udev (I guess debian has a helper for installing rules
and it renames them?). This adds the expected ".rules" extension to them
so that udev actually uses them.

This update also includes improved ucm config from Purism.

"Lockdown suppport" is also added here, which allows toggling off all of
the hks on the L5 to disable all radios, etc without breaking some
sensors. For more info, see 65ec7038 in librem5-base.
2022-12-01 16:46:14 -08:00
Oliver Smith 5e7faf1a09 device/main/u-boot-librem5: fix build on gcc 12 (MR 3683)
Disable Werror and add -no-warn-rwx-segment to LDFLAGS of
arm-trusted-firmware to make it build with gcc 12, smilar to:
https://gitlab.alpinelinux.org/alpine/aports/-/commit/769f9666b663ba06dca63ddbff6eb1af458355f3

Related: https://builds.sr.ht/~postmarketos/job/894728#task-pmbootstrap_build-422

[ci:skip-build] already built successfully in CI
2022-12-01 09:27:52 -08:00
Clayton Craft 2ccd927e23 purism-librem5: change default device tree (MR 3614)
Based on some new (to me...) info from Purism's Sebastian K, there are
apparently Evergreen devices that return different values for board rev,
so we shouldn't assume only r4 are Evergreen, and default to the r2 DT.

But many earlier devices (Birch, Chestnut, Dogwood) may or may not have
the board rev set either. Who knows! Defaulting to the Evergreen DT on
these devices is bad too, but there weren't many of those shipped (I
guess?), at least not compared to the number of Evergreens that aren't
properly identifiable in u-boot... so this using this DT by default is
the best of the two bad options we have.

This comment thread has more info:
https://gitlab.com/postmarketOS/pmaports/-/issues/1643#note_1147248594

fixes #1643

[ci:skip-build] already built successfully in CI
2022-12-01 09:24:13 -08:00
Jacopo Mondi 9db5f1d9f6 device/pine64-pinephonepro: Build DW9714 lens module (MR 3677)
Add the CONFIG_DW9714 symbol to the PinephonePro defconfig.

The PinephonePro rear camera module uses the DW9714 VCM to drive the
lens, and a driver is required to successfully complete the media
graph probe sequence.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
2022-12-01 12:19:52 +00:00
choc 2b7036dd54 testing/samsung-goyavewifi: new device (MR 3377)
xorg, ssh, touchscreen, battery works
[ci:skip-build]: already built successfully in CI
2022-12-01 09:50:53 +01:00
Jan Jasper de Kroon ccc870dcf9 device/main/linux-postmarketos-allwinner: Upgrade to 6.1-rc7 (MR 3678)
Kernel source updated to 6.1-rc7
Ext2 and Ext3 modules in aarch64 config disabled because Ext4 is backwards compatible.
2 fixes for PinePhone included in this source:
pinephone: fix power key behavior during suspend (avoid stuck key during resume)
pinephone keyboard: wait for 100ms after enabling power supply and before probing.

[ci:skip-build]: already built successfully in CI
2022-12-01 09:02:47 +01:00
Oliver Smith 3802b2cd40 temp/arm-trusted-firmware: fix build on gcc 12 (MR 3681)
Apply the same fix as in Alpine:
https://gitlab.alpinelinux.org/alpine/aports/-/commit/769f9666b663ba06dca63ddbff6eb1af458355f3

[ci:skip-build]: already built successfully in CI
2022-11-30 09:54:28 +01:00
Anton Bambura 9d98a872ed CODOWNERS: Add @Grimler for exynos5 kernel and tablets (MR 3680) 2022-11-29 21:25:14 +02:00
Newbyte 89ef6fcef8 main/crust: fix build with GCC 12 (MR 3676)
Patch picked from https://github.com/crust-firmware/crust/pull/209

[ci:skip-build]: Already built successfully in CI
2022-11-28 23:59:34 +01:00
Luca Weiss ff09c35b63 testing/linux-postmarketos-qcom-msm8974: enable kconfigcheck-community (MR 3657)
Also disable some unused CONFIG_ARCH_MSM* options.

[ci:skip-build]: Already built successfully in CI
2022-11-28 10:23:28 +01:00
Joel Selvaraj eab0457e00 CI: shellcheck: include call_audio_idle_suspend_workaround script (MR 3639)
[ci:skip-build]: already built successfully in CI
2022-11-28 09:07:52 +01:00
Joel Selvaraj ba6c4be060 community/device-oneplus-fajita: add q6voiced conf as it can make calls now (MR 3639)
Related dts and alsa ucm confs are merged in our tree.
2022-11-28 09:07:33 +01:00
Joel Selvaraj 156d093bc5 community/device-oneplus-enchilada: update q6voiced conf to match kernel (MR 3639) 2022-11-28 09:07:33 +01:00
Joel Selvaraj e95d28a6e7 community/soc-qcom-sdm845: update ucm confs and add call audio idle suspend workaround (MR 3639)
In SDM845, the q6voice kernel driver connects modem and audio backends.
Callaudiod seems to switch to correct audio device and prepares it, however, the audio
device get's closed since no one from the userspace is actively listening to it.
This cuts the audio in call. As a workaround, I have added to script to disable the
suspend-on-idle pulseaudio module during calls, so the audio devices don't close automatically.
2022-11-28 09:07:33 +01:00
Alexander Martinz 8e5d58b8ad community/linux-postmarketos-qcom-sdm845: upgrade to 6.1.0_rc4 (MR 3639)
Includes the following changes:
- rebase onto rc4
- squash a few changes which were marked to get squashed/fixups
- dropped "wcd934x: use .prepare and .shutdown instead of .trigger"
- OP6 audio device tree changes
- revert of a DSI DCS commit[1], which caused havoc in unprepare
  hooks of panel drivers

[1] - https://lore.kernel.org/linux-arm-msm/1892d0af-8aa4-dc03-887a-e44bb623b836@linaro.org/

Change-Id: I4790a278c0d35618ca824a036982769e66767ffd
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-11-28 09:07:28 +01:00
Niko a58776b2a5 main/postmarketos-ui-gnome-mobile: update to newest development commits
[ci:skip-build]: already built successfully in CI
2022-11-28 08:57:23 +01:00
Oliver Smith a135553ee7 channels.cfg: add initial v22.12 branch 2022-11-28 08:25:48 +01:00
Oliver Smith 50f178a8fd temp/mutter-mobile: fix dep mutter-mobile-schemas (MR 3672)
It should have depended on mutter-mobile-schemas instead of
mutter-mobile. Looks like mutter-mobile-schemas was getting installed
instead of mutter-mobile for it only by chance until now.

[ci:skip-build]: already built successfully in CI
2022-11-27 19:00:26 +01:00
Dylan Van Assche 1cbc021701 unmaintained/shift-axolotl-downstream: new device (MR 3637)
Downstream for kernel development, not for actual use.

Kernel defconfig taken from stock with:
- CONFIG_ANDROID_PARANOID_NETWORK unset
- CONFIG_DEVTMPFS set
- CONFIG_EXT4_FS_POSIX_ACL set
- CONFIG_LOCALVERSION set to "-downstream"
- CONFIG_SYSVIPC set
- CONFIG_USB_CONFIGFS_RNDIS set
- CONFIG_USER_NS set

Change-Id: I22bfd30dfc664dfaa2123c856b3662ddb37e760f
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
[ci:skip-build]: already built successfully in CI
2022-11-27 18:56:37 +01:00
Anton Bambura de609bf946 CODEOWNERS: update owners of Tegra-related packages (MR 3671) 2022-11-27 18:41:19 +01:00
Oliver Smith c1b08d8c60 u-boot-pinephone: disable automatic upgrade (MR 3664)
Don't upgrade u-boot automatically anymore as it doesn't work reliably
and isn't necessary anymore. See the wiki article for details.

Related: https://wiki.postmarketos.org/wiki/PinePhone_U-Boot_Upgrade
2022-11-27 17:52:30 +01:00
Oliver Smith 1af1eafd23 CI: mark deviceinfo_usb_rndis_function as obsolete (MR 3669)
[ci:skip-build]: already built successfully in CI
2022-11-27 17:30:03 +01:00
Luca Weiss 9271ab80b6 device/*: rename deviceinfo_usb_rndis_function (MR 3669)
Use the new variable name as used in initfs
2022-11-27 17:29:55 +01:00
Luca Weiss f60539ea18 main/postmarketos-mkinitfs: rename usb_rndis_function variable (MR 3669)
The variable describes the configfs function name to use, no matter if
it's rndis, ncm, ecm or any other function. So change the name of the
variable, the string we write to the configuration file and some
comments.
2022-11-27 17:29:37 +01:00
Jan Jasper de Kroon a3ae92f0ff device/main/linux-postmarketos-allwinner: upgrade to 6.1-rc6 (MR 3666)
[ci:skip-build]: already built successfully in CI
2022-11-27 17:13:01 +01:00
Alexander Martinz 2f6a7c9f77 testing/tablet-x64uefi: reformat depends and bump pkgrel (MR 3663)
Change-Id: I015f35f3e1b7563e341183cc08afb924aa2ed80b
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-11-26 14:45:52 +01:00
Alexander Martinz 21facd5cd5 testing/tablet-x64uefi: add libva subpackage (MR 3663)
Change-Id: I302321b7908ab7af989ca1e93f88eb575bbf2048
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-11-26 14:45:52 +01:00
Alexander Martinz f8285416e1 testing/tablet-x64uefi: add vulkan subpackage (MR 3663)
Enable vulkan on supported hardware configurations
out of the box.

Change-Id: I6c8e1713e7c834aae3a162b8a681f5abde02ed5e
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-11-26 14:45:51 +01:00
Anton Bambura 2163de2a5f linux-postmarketos-mediatek-mt8183: add kconfigcheck-community (MR 3667)
[ci:skip-build]: Already built successfully in CI
2022-11-26 14:22:03 +01:00
Anton Bambura 0109016e86 CODEOWNERS: update mt8183 packages owners (MR 3667) 2022-11-26 14:21:50 +01:00
Anton Bambura af5183e062 linux-postmarketos-mediatek-mt8183: add myself as a co-maintainer (MR 3667) 2022-11-26 14:21:49 +01:00
Sicelo A. Mhlongo e3154dd055 nokia-n900: use updated serial console name (MR 3662)
Since 00648d0282dcca1da453c0b20d27e24bf901a854, the correct serial console name
is ttySx instead of the older ttyOx. Reflect this in cmdline passed to kernel
via u-boot

[ci:skip-build]: already built successfully in CI
2022-11-23 09:07:39 +01:00
Alexander Martinz 5ce0b6ae4d main/postmarketos-ui-plasma-desktop: add various recommended packages (MR 3659)
Recommend installing:
  - fwupd
    - Receive firmware updates for supported hardware

The following packages are required to show device information at:
  - Settings -> About this System -> Show More Information

Devices
  - Firmware Security
    - aha
    - fwupd
  - PCI
    - pciutils

Graphics
  - OpenGL
    - mesa-demos
  - Vulkan
    - vulkan-tools
  - Wayland
    - wayland-utils
  - X-Server
    - xdpyinfo

Change-Id: I8a1eb484720f717f0504418f7c5c6af505b081b6
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
[ci:skip-build]: already built successfully in CI
2022-11-23 09:04:19 +01:00
Luca Weiss c960b3d941 raspberry-pi4: remove conflicting brcmfmac firmware link (MR 3636)
The file brcmfmac43455-sdio.raspberrypi,4-model-b.bin is now provided by
linux-firmware-brcm package in Alpine. Remove to symlink to stop the
file conflict.
2022-11-22 16:32:08 +01:00
Mithil Bavishi 9147bbd9bc linux-postmarketos-omap: update config (MR 3653) 2022-11-22 10:29:33 +01:00
uclydde ecb08a4388 motorola-ali: use mainline kernel and add firmware (MR 3569)
[ci:skip-build]: already built successfully in CI
2022-11-21 09:08:46 +01:00
Oliver Smith 245d41d7c5 CI scripts: fix typo in URL (MR 3655)
Note that the URLs in these scripts are not only for information, but
they are also used as marker by pmbootstrap so it knows these are
compatible with 'pmbootstrap ci'. I just fixed the typo in the
pmbootstrap code as well and made a new release, use pmbootstrap 1.50.0
or above to have it recognize these scripts with 'pmbootstrap ci' again.
2022-11-20 16:50:42 +01:00
Raymond Hackley e9e3295925 main/postmarketos-ui-kodi: Add armv7 (MR 3647)
flatbuffers should have been available on armv7,
since aports 0f3295fb0660f5caf59b8b2385f7c9305f1d57f0

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-11-20 16:22:44 +01:00
Minecrell 63373d18a5 unmaintained/linux-{alcatel,samsung-a5}*: fix checksums (MR 3654)
I renamed the repository so GitHub changed all the checksums. :(

[ci:skip-vercheck]: the source files are still exactly the same
[ci:skip-build]: Already built successfully in CI
2022-11-20 16:13:28 +01:00
Oliver Smith 03ee2e9bba cross/busybox-static-*: upgrade to 1.35.0-r29 2022-11-20 16:01:34 +01:00
Newbyte aacc9f48dd temp/mutter-mobile: remove zenity dependency (MR 3648)
mutter no longer depends on zenity as of version 43.alpha.

See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2370
And https://gitlab.gnome.org/GNOME/mutter/-/blob/e331e38a191a36faaa5bb049157ab77f94fd7654/NEWS#L137

Alpine commit: https://gitlab.alpinelinux.org/alpine/aports/-/commit/80c64759d16d1161ba706f83fca4d7518ebc3302

[ci:skip-build]: already built successfully in CI
2022-11-20 15:54:57 +01:00
Luca Weiss 7553dc4011 qemu-riscv64: new device (MR 3571)
Support launching postmarketOS in QEMU on riscv64 architecture. It is
mostly copied from device-qemu-aarch64 with some riscv64-specific
modifications.

Currently UIs using Xorg like Mate, XFCE4 and LXQT work fine, Wayland
UIs like weston, plasma-mobile etc didn't work in my testing.

Also using "pmbootstrap qemu --tablet" is needed to make mouse input
work, the defaults don't seem to work at the moment.

[ci:skip-build]: already built successfully in CI
2022-11-20 15:22:22 +01:00
Svyatoslav Ryhel 3301dc90d8 device-lg-p895: add support for LG Optimus Vu (MR 3645)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-11-20 15:19:06 +01:00
Svyatoslav Ryhel a7467afe2f firmware-lg-x3: add LG Optimus 4X HD and Vu firmwares (MR 3645)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2022-11-20 15:18:56 +01:00
Svyatoslav Ryhel 4f72f9b96c linux-postmarketos-grate: upgrade to 6.0.6 stable (MR 3645)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2022-11-20 15:18:47 +01:00
Luca Weiss e03c6469a7 fairphone-fp3: include touchscreen driver in initfs (MR 3651)
Now that touchscreen driver is supported in kernel, include the module
in initfs so it's available there.

[ci:skip-build]: Already built successfully in CI
2022-11-19 11:44:39 +01:00
Luca Weiss 96179b88df testing/linux-postmarketos-qcom-msm8953: support Moto G6 & FP3 touchscreen (MR 3651)
Upgrade to a newer 5.18.3 commit that adds this support, and enable the
relevant kconfig options.
2022-11-19 00:21:14 +01:00
Luca Weiss 502474cc3a main/*: rebuild against Python 3.10 (MR 3650) 2022-11-18 18:35:26 +01:00
Oliver Smith bbead6a9c6 main/postmarketos-android-recovery-installer: upgrade to 1.0.7 (MR 3646)
[ci:skip-build]: already built successfully in CI
2022-11-18 08:03:08 +01:00
Johannes Marbach b13fe4ece0 main/unl0kr: upgrade to 0.3.0 (MR 3641)
[ci:skip-build]: already built successfully in CI
2022-11-17 21:23:07 +01:00
Oliver Smith a1242ed35e CI: implement distfile-check as python test (MR 3608)
Reimplement the distfile-check as python test inside this git
repository, so we don't need to download a tarball of ci-common.git to
run it. This would not have been nice for running the test with
'pmbootstrap ci', as we don't want it to get downloaded every time the
test runs.

This new implementation is done in less than 40 lines of code, very fast
and doesn't need to create a lot of files in /tmp to build a
"distfiletree".
2022-11-17 19:10:56 +01:00
Oliver Smith 3c4080e8f5 CI: make test_unreferenced_files more generic (MR 3608)
Prepare to add a new test making use of the
parse_source_from_checksums() function in test_unreferenced_files.py by
extending the function to not only return the checksum file names, but
also the checksums. Also rename the file from test_unreferenced_files.py
to test_source.py.
2022-11-17 19:10:56 +01:00
Oliver Smith 6dbe4fdc31 CI: move_logs.sh: put in .ci/lib (MR 3608) 2022-11-17 19:10:56 +01:00
Oliver Smith 196abb1575 CI: kconfig adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
Oliver Smith da52dace85 CI: adjust .ci/common.py users to pmbootstrap ci (MR 3608)
Adjust all CI scripts that make use of .ci/common.py to
'pmbootstrap ci'. Move all scripts that are not direct entry points to
running CI scripts to .ci/lib.

Comment out the dtb check, as it is failing. Apparently it didn't run
properly before. Let's fix this after this CI change is done.
2022-11-17 19:10:56 +01:00
Oliver Smith 8f78988b33 CI: editor-config: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
Oliver Smith c88cfa516f CI: shellcheck: adjust for 'pmbootstrap ci' (MR 3608)
Split out the grep for CHANGEME into a separate .ci/grep.sh script, as
it's not related to shellcheck and also there's another grep check that
I'll move there in a follow-up patch.
2022-11-17 19:10:56 +01:00
Oliver Smith 613aa1c68a CI: flake8: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
Oliver Smith a2f75963bf CI: wiki: adjust for 'pmbootstrap ci' (MR 3608)
Add a wrapper .ci/wiki.sh, that pmbootstrap ci can run and use it in
gitlab-ci.yml. Add a .ci/lib/gitlab_prepare_ci.sh script that makes a
user available with sudo, as expected by the pmbootstrap ci compatible
scripts. Set up binfmt_misc too while at it, it will be needed for
running pmbootstrap.

The next patches will adjust the rest of the CI scripts and move the old
scripts in the .ci/lib dir, so only the scripts that should be called
directly are in the .ci dir.

Related: https://postmarketos.org/pmb-ci
2022-11-17 19:10:56 +01:00
Oliver Smith 23790a3577 .ci/check_devices_in_wiki: remove <> around url (MR 3608)
I added this around all urls in the beginning of postmarketOS, but now I
think it makes it less readable and doesn't have a benefit.
2022-11-17 19:09:57 +01:00
Oliver Smith cb79ff57d3 cross/busybox-static-*: upgrade to 1.35.0-r28 2022-11-17 08:35:52 +01:00
Oliver Smith dadfca1fb8 pmaports.cfg: add supported_heimdall_depends
Add the new variable, similar to supported_fastboot_depends.

Related: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/patches/36815
Related: https://wiki.postmarketos.org/wiki/Pmaports.cfg_reference
2022-11-16 08:45:07 +01:00
Dzmitry Sankouski c18d2da154 xiaomi-sagit: fix initramfs module list and blacklist ipa module (MR 3644)
Remove mainline postfix in initramfs module list,
because sagit has only 1 kernel for now.
Blacklisting ipa module fixes poweroff.
See 68cdc1ea2b commit for more info.

[ci:skip-build]: already built successfully in CI
2022-11-16 08:22:47 +01:00
Jakob Hauser 67b5dd49dd main/swclock-offset: move to its own repository (MR 3642)
To make "swclock-offset" available to other projects as well, it was
moved to its own repository.
2022-11-15 10:32:29 +01:00
Jami Kettunen fa69d91465 volla-yggdrasil: new device (Volla Phone) (MR 3319) 2022-11-14 19:44:54 +02:00
Jami Kettunen cf6b0ff530 linux-postmarketos-mediatek-mt6763: new aport (6.1_rc5) (MR 3319)
This is an early mainline port for the MediaTek MT6763 Helio P23 SoC
that just about boots in about 3 minutes with one core online, logs on
display (simplefb) or UART serial console and USB gadget mode
facilitating netbooting postmarketOS while tethered via RNDIS.
2022-11-14 19:44:54 +02:00
medsouz 59c3894c44 device/pine64-pinephonepro: Load Pinephone Pro devicetree with Grub (MR 3628)
Restores Pinephone Keyboard functionality
2022-11-14 09:38:27 -05:00
Newbyte 5230a69c3a temp/megapixels-purism: update url to point to millipixels repo (MR 3640)
Repository was moved.
2022-11-14 08:48:12 +01:00
Newbyte 4ee3b769fb main/postmarketos-ui-phosh: rename kgx to gnome-console (MR 3638)
kgx was renamed to gnome-console with the release of version 42.beta, so
let's reflect that in our Phosh UI package.

[ci:skip-vercheck]: pkgrel bump is not necessary when changing
recommends.
2022-11-14 08:41:45 +01:00
Asutosh Variar 7f12e90c18 apple-iphone6: new device (MR 3629)
[ci:skip-build]: already built successfully in CI
2022-11-14 08:03:23 +01:00
Mithil Bavishi 432c4991fd linux-postmarketos-omap: Add charger (SMB347) support for espresso10 (MR 3626)
[ci:skip-build]: already built successfully in CI
2022-11-13 20:16:20 +01:00
Jan Jasper de Kroon c7c7fbce18 pine64-pinephonepro: Clean up double handled modem udev-rules (MR 3635)
Same as with PinePhone, remove some udev rules already handled by eg25-manager udev.

[ci:skip-build]: already built successfully in CI
2022-11-12 13:05:38 +01:00
Jan Jasper de Kroon 955ac29f0d device/community/linux-pine64-pinephonepro: upgrade to 6.0.8 (MR 3599)
Upgrade PinePhone Pro kernel to rebased 6.0.8
Including 11 PinePhone Keyboard patches.

[ci:skip-build]: already built successfully in CI
2022-11-11 08:21:36 +01:00
Devin Lin 1c42df3769 main/postmarketos-ui-plasma-mobile: Sync configuration with upstream (MR 3634)
[ci:skip-build]: already built successfully in CI
2022-11-11 08:16:18 +01:00
alikates e38db6e4de main/postmarketos-mkinitfs: don't use uevent helper (MR 3351)
Instead of using the uevent helper binary, mdev daemon listens for kernel
events using the netlink interface. Then the requirement of enabling
UEVENT_HELPER for pmOS kernels can be dropped, as it's use is discouraged.

From CONFIG_UEVENT_HELPER kernel config help:

> This should not be used today, because usual systems create many events
> at bootup or device discovery in a very short time frame. One forked
> process per event can create so many processes that it creates a high
> system load, or on smaller systems it is known to create out-of-memory
> situations during bootup.

Support for running mdev as a daemon was added in 2019 with commit [1].

From that same commit:

> Adds the -d option to run mdev in daemon mode handling hotplug events
> from the kernel like udev. If the system generates many hotplug events
> this mode of operation will consume less resources than registering
> mdev as hotplug helper or using the uevent applet.

[1] https://git.busybox.net/busybox/commit/?id=498cec202adbf69a7a72af5e204260682d614183
[ci:skip-build]: already built successfully in CI
2022-11-11 08:11:19 +01:00
Johannes Marbach 0b523f354b main/unl0kr: upgrade to 0.2.0_git20221110 (MR 3633)
[ci:skip-build]: already built successfully in CI
2022-11-11 07:52:20 +01:00
Gareth Peoples c906b166b2 samsung-heatqlte: new device (Samsung Galaxy Ace 4) (MR 3620)
[ci:skip-build]: already built successfully in CI
2022-11-10 21:50:10 +01:00
Alexey Minnekhanov ad249d3b87 linux-postmarketos-qcom-msm8974: upgrade to 5.19.17 (MR 3625)
This contains a fix for second panel variant for samsung-hlte.

No more manual changes, .config was regenerated using kconfig migrate.

[ci:skip-build]: already built successfully in CI
2022-11-10 21:41:20 +01:00
exkc 4a43f241ee linux-postmarketos-allwinner: enable compiling sunxi-cir (MR 3609)
This gets IR RX working on Allwinner-based devices that have IR.

[ci:skip-build]: already built successfully in CI
2022-11-10 21:32:49 +01:00
Oliver Smith 1009f265d1 cross/musl-*: upgrade to 1.2.3-r4 2022-11-10 21:20:18 +01:00
Jan Jasper de Kroon 64e671aea3 Revert "device/pine64-pinephone: add recommended modem udev rules (MR 3235)" (MR 3632)
This reverts commit b62d7f6e7c.
These are already handled by 80-modem-eg25.rules in eg25-manager.

[ci:skip-build]: already built successfully in CI
2022-11-10 21:14:07 +01:00
Jan Jasper de Kroon d4e96df17d Revert "device/pine64-pinephone: add additional modem udev rule for new community firmware serial (MR 3240)" (MR 3632)
This reverts commit f8df093985.
These are already handled by 80-modem-eg25.rules in eg25-manager.
2022-11-10 21:13:55 +01:00
Pablo Correa Gómez df76034e32 main/avbtool: remove (MR 3630)
avbtool is now included in android-tools upstream

Relates #1779
2022-11-09 17:52:50 +01:00
Oliver Smith 8c77e7e42f pmaports.cfg: add supported_fastboot_depends
Add this new variable so pmbootstrap can use it to determine which
depends need to be installed for the fastboot flashing method. It used
to be android-tools,avbtool but now it's only android-tools as avbtool
became part of android-tools.

Related: issue 1779
Related: https://postmarketos.org/pmaports.cfg
2022-11-09 09:00:51 +01:00
iAboothahir 3bf4fe443f firmware-asus-x00td: add missing mba.mbn firmware (MR 3617)
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>

[ci:skip-build]: Already built successfully in CI
2022-11-08 08:46:27 +01:00
iAboothahir 7f6b7fb2d0 device-asus-x00td: add qcom_fg ,qcom_pmi8998_charger module to initfs (MR 3617)
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>
2022-11-08 08:46:23 +01:00
iAboothahir f7cf971e40 linux-postmarketos-qcom-sdm660: upgrade to 6.0.5 (MR 3617)
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>
2022-11-08 08:46:13 +01:00
Jan Jasper de Kroon 62f19c3e03 device/main/linux-postmarketos-allwinner: upgrade to 6.0.7 (MR 3624)
[ci:skip-build]: Already built successfully in CI
2022-11-08 08:39:44 +01:00
Barnabás Czémán 68c728e63c testing/xiaomi-riva: Fix fb.modes (MR 3616)
Fixes fb.modes values.
2022-11-07 21:44:09 +01:00
Segfault a2365ffc57 device/testing: update htc-flounder to use mainline kernel (MR 3623)
This is an incomplete port but it has greater functionality than the existing downstream based one, which has been moved to unmaintained.

[ci:skip-build]: Already built successfully in CI
2022-11-07 21:29:24 +01:00
Segfault d4eed06542 htc-flounder: move downstream pieces to unmaintained (MR 3623)
It can still be chosen as 'htc-flounder-downstream' in
pmbootstrap init.
2022-11-07 21:29:11 +01:00
Dylan Van Assche 64dc758fed community/soc-qcom-sdm845: fix earpiece SHIFT6mq (MR 3618)
Update to latest ALSA UCM configs to fix earpiece on SHIFT6mq

[ci:skip-build] already built successfully in CI
2022-11-06 21:40:54 -08:00
Raymond Hackley 27e98026e4 samsung-{gprimelte{can,xx},fortuna3g}: add both available panel variants (MR 3604)
There are 2 panel variants supported:
- panel-samsung-hx8389c-gh9607501a
- panel-samsung-s6d78a0-gh9607501a

Add both of them to enable panel display during splash and FDE.
Note that fortunaltezt has only one panel variant so it's not included.

[ci:skip-build] already built successfully in CI
2022-11-06 21:38:51 -08:00
Clayton Craft 6ec2ba3c03 postmarketos-android-recovery-installer: upgrade to 1.0.6 (MR 3619)
Fixes:
- Fix installation with FDE
- Use new path to kpartx (MR 16)

Other:
- pmos_install: Increase boot partition size to 256MB (MR 14)
- pmos_install_functions: make shellcheck happy
- update-binary: make shellcheck happy

[ci:skip-build] already built successfully in CI
2022-11-06 21:36:40 -08:00
Newbyte 63b661faa4 cross/musl-riscv64: upgrade to 1.2.3-r2 2022-11-06 15:11:25 +01:00
Newbyte cbb3d09687 cross/musl-armv7: upgrade to 1.2.3-r2 2022-11-06 15:11:13 +01:00
Newbyte fe0c0492a1 cross/musl-armhf: upgrade to 1.2.3-r2 2022-11-06 15:11:06 +01:00
Newbyte 8611e23f3c cross/musl-aarch64: upgrade to 1.2.3-r2 2022-11-06 15:10:52 +01:00
Martijn Braam 4c3be3aa14 main/postmarketos-tweaks: upgrade to 0.13.0 (MR 3613)
[ci:skip-build] already built successfully in CI
2022-11-03 23:27:05 -07:00
Clayton Craft 02198dccdd postmarketos-mkinitfs: upgrade to 1.5.1
Fixes a crash due to the path for kpartx changing in a multipath update
in Alpine Edge.
2022-11-03 12:05:23 -07:00
Dzmitry Sankouski 341e959e45 xiaomi-sagit: new device (Xiaomi Mi6) (MR 3134)
Device uses mainline kernel. What works:
- boots
- display
- touchscreen
- wifi

Also add firmware package

[ci:skip-build]: already built successfully in CI
2022-11-03 07:58:19 +01:00
Raymond Hackley db00e85baf main/postmarketos-config-nftables: 50_*.nft: drop unused wwan rules (MR 3594)
There is "iifname "wwan*" drop" defined in 01_wwan.nft, which drops
any not "established, related" incoming packet from WWAN.

[ci:skip-build]: already built successfully in CI
2022-11-03 07:48:33 +01:00
Richard Acayan 259e8cc44f google-sargo: add nonfree firmware (MR 3590)
Non-free firmware is required for:
 - 3D acceleration
 - Video acceleration
 - Bluetooth

[ci:skip-build]: already built successfully in CI
2022-11-03 07:37:46 +01:00
Richard Acayan f2b1d7e206 device/testing/linux-postmarketos-qcom-sdm670: upgrade to 6.0.6 (MR 3590)
New features for google-sargo:
 - GPU acceleration
 - Bluetooth
 - Haptics (currently only rumble effect)
 - Video acceleration (still untested)
 - NFC (only detection was tested)
2022-11-03 07:37:35 +01:00
Alexander Martinz 0307dc695e tablet-x64uefi: add kernel-edge as additional option (MR 3610)
Certain newer hardware may require a newer kernel than the current
lts in order to work.

Change-Id: Iae0d91f8bf8d1b8516698841895f942e527b0813
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
[ci:skip-build]: already built successfully in CI
2022-11-03 07:33:56 +01:00
Anton Bambura fac4d7e178 temp/alsa-ucm-conf-google-kukui: add myself as maintainer (MR 3611) 2022-11-02 19:07:31 +01:00
Anton Bambura 12d2830ba7 testing/firmware-google-veyron-brcm: add myself as maintainer (MR 3611) 2022-11-02 19:07:31 +01:00
Anton Bambura a98c9ab918 testing/device-microsoft-surface-rt: add myself as maintainer (MR 3611) 2022-11-02 19:07:31 +01:00
Anton Bambura be2368a676 testing/device-lg-judyp: add myself as maintainer (MR 3611) 2022-11-02 19:07:31 +01:00
Anton Bambura 99d21ecfef community/firmware-lenovo-a6010: add myself as maintainer (MR 3611) 2022-11-02 19:07:31 +01:00
Anton Bambura c1a125b56f community/firmware-lenovo-a6000: add myself as maintainer (MR 3611) 2022-11-02 19:07:30 +01:00
Anton Bambura bdec0258b6 CODEOWNERS: add myself for packages that I maintain (MR 3611) 2022-11-02 19:07:30 +01:00
Bart Ribbers 97b18eafb2 community/postmarketos-ui-plasma-desktop: add bluetooth service to default runlevel (MR 3592) 2022-11-02 18:46:07 +01:00
Barnabás Czémán 7ff30616ef xiaomi-riva: Add initial support for Redmi 5A (MR 3595)
[ci:skip-build]: already built successfully in CI
2022-11-02 18:41:19 +01:00
Oliver Smith 1fcbdb1819 pmaports.cfg: set pmbootstrap_min_version=1.47.0
With recent cross/gcc-* upgrades, we actually require pmbootstrap
1.47.0 to avoid the following error:
  ERROR: Invalid pkgver '${_pkgbase}_git${_pkgsnap}' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/cross/gcc-aarch64/APKBUILD
2022-11-02 15:37:03 +01:00
Oliver Smith d86cd0c188 cross/gcc-*: upgrade to 12.2.1_git20220924-r4 2022-11-02 15:29:48 +01:00
Oliver Smith 5e2730d2db CI: add new test for correct usage of provides (MR 3597)
[ci:ignore-count]
[ci:skip-build]: does not finish for aarch64, I'll verify that it builds
for aarch64 before merging.
2022-11-02 15:02:56 +01:00
Oliver Smith 73376dee97 temp/megapixels-purism: fix provides (MR 3597)
The pkgver is significantly lower (0.19) than the one of megapixels
(1.5.2 as of writing), so we can use the versioned provides here. If it
was closer so megapixels-purism's pkgver could become higher than
megapixels in the future, then we should use unversioned provides with
provider priorities instead.
2022-11-02 15:02:55 +01:00
Oliver Smith 5e73fe103a main/mobile-config-firefox: upgrade to 3.1.0 (MR 3597)
Drop replaces, provides for postmarketos-config-firefox. This was the
name of the package until August of 2020, not relevant anymore. Also
the provides didn't have pkgrel and therefore was wrong.
2022-11-02 15:02:55 +01:00
Oliver Smith f8d12ed781 main/msm-firmware-loader: fix provides (MR 3597) 2022-11-02 15:02:55 +01:00
Oliver Smith f01b561b97 device/community/soc-*-ucm: set provider_priority (MR 3597)
Setting unversioned provides= without provider_priority is not valid.
Set provider_priority=1, the related aports MR will set it to 10 in
alsa-ucm-conf.

Related: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/40814
2022-11-02 15:02:55 +01:00
Oliver Smith a258f27d03 device/community/firmware-bq-picmt: fix provides (MR 3597) 2022-11-02 15:02:54 +01:00
Oliver Smith f288cdaa77 treewide: remove linux-headers replacements (MR 3597)
Remove the -dev subpackages of kernels that replace the linux-headers
package. As I understand, the only case where this would make sense is
if you wanted to build a kernel module against headers that need to be
newer than the headers in Alpine's linux-headers package (currently
5.19.5).

While this might have been historically relevant when wireguard wasn't
in the kernel and you might have needed newer linux-headers to build
the module, it seems irrelevant today. If somebody should need this in
the future, then bring it back properly / consider getting the
linux-headers package in Alpine upgraded. Right now the -dev packages
are broken in several ways:

* Use of unversioned provides= (pma#1766)
* Don't contain binaries needed to build binary packages (pma#462).
  This was worked around in 6aba5f ("Package kernel-scripts
  separately"), but later this didn't build anymore and we removed it.

So in short: broken and unused, drop them.
2022-11-02 15:02:54 +01:00
Oliver Smith 96f8084bcd main/postmarketos-ui-sxmo-de-dwm: set provider_priority=5 (MR 3597)
apk treats provider_priority=0 as if it is not there, not as lowest
value. The previous patch set it to =10 for …-sxmo-de-sway, so set it to
=5 for the dwm version.

Related: https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/c21f61ddd8d742e4de2202aa623b0c06573f567b/src/solver.c#L713-721
2022-11-02 15:02:54 +01:00
Oliver Smith 04250e1e41 main/postmarketos-ui-sxmo-de-sway: set provider_priority=10 (MR 3597)
apk ignores a provider_priority of 0. In order to have …-sxmo-de-dwm
have a lower provider priority than …-sxmo-de-sway, set a higher
priority than 1 for the sway version.
2022-11-02 15:02:54 +01:00
Oliver Smith 36cff31884 main/mkbootimg-osm0sis: upgrade to 2021.08.06 (MR 3597)
Also fix wrong use of provides.
2022-11-02 15:02:48 +01:00
Alexander Martinz a2c2a6573e community/linux-postmarketos-qcom-sdm845: upgrade to 6.1.0_rc3 (MR 3580)
Change-Id: Ice7c2942892eb0a173dcded835d5fac5a8f32066
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
[ci:skip-build]: already built successfully in CI
2022-11-02 14:54:57 +01:00
Anton Bambura 909df1c8e5 google-hana: depend on alsa-utils (MR 3601)
This makes sound working
[ci:skip-build]: already built successfully in CI
2022-11-02 14:50:51 +01:00
Anton Bambura 6d22ee8398 google-elm: depend on alsa-utils (MR 3601)
This makes sound working
2022-11-02 14:50:39 +01:00
Anton Bambura c689986438 alsa-ucm-conf-google-kukui: add symlinks (MR 3600)
For some reason, alsa sometimes probes it from another locations.
Add symlinks to handle it

Tested-by: Eric Curtin <ecurtin@redhat.com>
[ci:skip-build]: already built successfully in CI
2022-11-02 14:45:54 +01:00
Luca Weiss 5c78e255a6 CI: disallow firmware packages to be noarch (MR 3607)
As explained in the previous commit, it's just unnecessary.

[ci:ignore-count]
[ci:skip-vercheck] no need to rebuild for arch change
2022-11-01 18:20:08 +01:00
Luca Weiss 44f1e77115 device/*/firmware-*: move away from arch="noarch" (MR 3607)
Stop building many firmware packages for architectures that aren't used
by those devices. This should reduce CI/bpo time and repo space by a
bit.
2022-11-01 18:20:03 +01:00
Newbyte 909aebe26f temp/gtk+2.0: remove (MR 3598)
gtk+2.0 for aarch64 is available in Alpine again.
2022-11-01 17:31:01 +01:00
niko 623702d4cf main/postmarketos-ui-gnome-mobile: replace gedit with gnome-text-editor (MR 3603)
[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-11-01 16:58:41 +01:00
Dylan Van Assche d8c4343bea community/soc-qcom-sdm845: add ALSA UCM for SHIFT6mq (MR 3606)
Update the ALSA UCM package for the SDM845 so the ALSA UCM configs for
the SHIFT6mq are included. Speaker, microphones, headset work fine in
HiFi mode. In Voice Call mode, the microphone works, but the earpiece is
still silent.

[ci:skip-build]: already built successfully in CI
2022-11-01 16:53:49 +01:00
Dylan Van Assche 9ce52b3587 community/device-shift-axolotl: add q6voiced config (MR 3606)
q6voiced is a daemon to allow voice calls with the q6voice kernel
driver. Add its config so it can open the right audio device on the
SHIFT6mq during a call.
2022-11-01 16:53:49 +01:00
Luca Weiss c4fac0adfa community/linux-postmarketos-qcom-sm6350: enable new community options (MR 3560)
[ci:skip-build] # too many packages for 3h
2022-10-31 21:20:26 +01:00
Luca Weiss 5db3c291f2 community/linux-postmarketos-qcom-msm8996: enable new community options (MR 3560) 2022-10-31 21:19:46 +01:00
Luca Weiss 9ecbd62fce community/linux-postmarketos-qcom-msm8916: enable new community options (MR 3560) 2022-10-31 21:19:35 +01:00
Luca Weiss d49ecb9dbb community/linux-postmarketos-omap: enable new community options (MR 3560) 2022-10-31 21:18:22 +01:00
Luca Weiss 9a462d3759 community/linux-postmarketos-exynos4: enable new community options (MR 3560) 2022-10-31 21:17:39 +01:00
Luca Weiss 76f5a4ab50 community/linux-pine64-pinephonepro: enable new community options (MR 3560) 2022-10-31 21:17:36 +01:00
Luca Weiss bbce946108 community/linux-nokia-n900: enable new community options (MR 3560) 2022-10-31 21:16:39 +01:00
Luca Weiss 0948a1659c main/linux-postmarketos-allwinner: enable new community options (MR 3560) 2022-10-31 21:07:16 +01:00
Sicelo A. Mhlongo 930d8ecad2 device-nokia-n900: fix Fn key in latest xkb-config (MR 3596)
Explicitly set Fn key as Mod5. In xkeyboard-config up to 2.36, this was somehow
set implicitly, since it was working, although I am not sure where/how. In 2.37
it only works when specified.

[ci:skip-build]: already built successfully in CI
2022-10-31 12:34:01 +01:00
Barnabás Czémán e2c984606f firmware-xiaomi-rolex: replace broken source link (MR 3593)
[ci:skip-build]: already built successfully in CI
2022-10-28 09:48:53 +02:00
Sicelo A. Mhlongo 789343b8c7 device-nokia-n900: enable use of rtc time at boot (MR 3586)
Since N900 rtc works fine, remove swclock from boot as it causes time to be set
wrong. Additionally, rtc device is set correctly in kernel, so remove old,
adjusted hwclock config.

Partially reverts pmaports 0e502a5139
[ci:skip-build]: already built successfully in CI
2022-10-28 08:37:16 +02:00
Oliver Smith 2acece294a temp/gtk+2.0: fork from Alpine for aarch64
Fork it as the package is currently gone in Alpine edge for aarch64 and
the builder seems to be stuck.
2022-10-28 08:31:52 +02:00
Luca Weiss 8c19bf2f9b CI: add riscv64 (MR 3566)
Now that we have the cross compilers in place, make the CI build riscv64
as well.
2022-10-26 20:56:18 +02:00
Oliver Smith d410854f6c temp/gnome-shell-mobile: disable on riscv64
[ci:skip-vercheck] [ci:skip-build]: just changing arches
2022-10-26 20:29:19 +02:00
Oliver Smith 2d51770a74 main/postmarketos-ui-gnome-mobile: disable on riscv64 2022-10-26 20:27:13 +02:00
Oliver Smith 5e9e802c67 temp/mutter-mobile: disable on riscv64
Fails for a weird reason, disable to get the initial bpo build for
riscv64 done.

Related: https://builds.sr.ht/~postmarketos/job/869829
2022-10-26 20:25:26 +02:00
Sam Day e017c774f1 linux-postmarketos-qcom-msm8974: compile modules for netboot and iptables 'statistic' (MR 3581)
[ci:skip-build]: already built successfully in CI
2022-10-26 09:55:13 +02:00
Oliver Smith 8185d66b73 main/unixbench: disable on riscv64 (MR 3588)
Related: https://builds.sr.ht/~postmarketos/job/868522
[ci:skip-build], [ci:skip-vercheck]: just disabling arches
2022-10-26 09:24:38 +02:00
Oliver Smith 594a34459e main/postmarketos-ui-plasma-desktop: disable on riscv64 (MR 3588)
Related: https://builds.sr.ht/~postmarketos/job/868600
2022-10-26 09:24:38 +02:00
Oliver Smith 9529c0ab42 main/postmarketos-ondev: disable on riscv64 (MR 3588)
Related: https://builds.sr.ht/~postmarketos/job/868406
2022-10-26 09:24:38 +02:00
Luca Weiss 2852f55ff0 temp/gnome-shell-mobile: enable on riscv64 (MR 3588) 2022-10-26 09:24:38 +02:00
Luca Weiss aaf1306126 temp/mutter-mobile: enable on riscv64 (MR 3588) 2022-10-26 09:24:38 +02:00
Oliver Smith c102971e27 main/qtwebbrowser: remove (MR 3589)
Remove this obsolete package. It was added four years ago because we
didn't have working webbrowsers and hasn't been updated since.
2022-10-26 09:05:35 +02:00
Pablo Correa Gómez b47abadccc temp/gnome-software-plugin-apk: drop (MR 3577) 2022-10-25 09:35:32 +02:00
Pablo Correa Gómez f4acff31f9 temp/gnome-software: drop (MR 3577)
Alpine's version is now mostly adaptive
2022-10-25 09:35:27 +02:00
Luca Weiss 766020c811 main/gcc6: disable on riscv64 (MR 3583)
[ci:skip-vercheck]: Changing arches doesn't require a rebuild
[ci:skip-build]: already built successfully in CI
2022-10-25 08:31:21 +02:00
Luca Weiss 9d15b45746 main/gcc4: disable on riscv64 (MR 3583) 2022-10-25 08:31:09 +02:00
Jan Jasper de Kroon 8b3c4eb6d3 linux-postmarketos-allwinner: upgrade to 6.0.3 (MR 3572)
[ci:skip-build]: already built in CI
2022-10-25 08:26:39 +02:00
Luca Weiss c31c11cad9 main/hello-world-rust: allow textrels on riscv64 (MR 3584)
[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-10-25 08:18:11 +02:00
Oliver Smith 8029ed0762 temp/gnome-shell-mobile: remove dep gnome-themes-standard (MR 3587)
Follow what Alpine is doing with gnome-shell.

Fix for upstream-compat check:
  missing depend(s): gnome-themes-standard

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/b745f99744d915c51d97bf17d8a9a4a59502a923
Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/959ad322e0cb616257443206fd3ca85f7492012d
2022-10-25 08:01:32 +02:00
iAboothahir 5361b42aeb device-asus-x00td: add firmware-asus-x00td (MR 3579)
Signed-off-by: Aboothahir U <aboothahirpkd@gmail.com>
2022-10-24 13:25:38 +03:00
iAboothahir 4a8a890148 firmware-asus-x00td: add firmware for GPU, WiFi, Bluetooth, ADSP, etc. (MR 3579)
Signed-off-by: iAboothahir <aboothahirpkd@gmail.com>
2022-10-24 13:25:04 +03:00
Alexey Minnekhanov e78098c34f main/postmarketos-ui-fbkeyboard: fix dejavu font path (MR 3582)
Alpine has changed location and package name of ttf-dejavu
fonts, adjust to new location.

Without this, fbkeyboard service crashes with error:

  unable to load font file: No such file or directory

Default font path is hardcoded [1] to
  "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf".
Luckily there is a CLI switch to change default, use it.

[1] https://github.com/bakonyiferenc/fbkeyboard/blob/master/fbkeyboard.c#L37
2022-10-24 13:10:52 +03:00
Joel Selvaraj c9dc088afd community/firmware-xiaomi-beryllium: update maintainer info (MR 3497)
Venji10 is no longer involved in actively maintaining the package for more than a year plus.
Changing myself to be the maintainer and also updated my email id.

[ci:skip-build]: already built successfully in CI
2022-10-24 09:46:44 +02:00
Joel Selvaraj 2decd7eb54 community/xiaomi-beryllium: update q6voiced conf and update maintainer information (MR 3497)
Because of recent changes to kernel and alsa-ucm-conf,
the q6voiced device is changed.

Venji10 is no longer involved in actively maintaining the package for more than a year plus.
Changing myself to be the maintainer and also updated my email id.
2022-10-24 09:46:39 +02:00
Joel Selvaraj c831889cb3 community/soc-qcom-sdm845: upgrade alsa-ucm-conf and add co-maintainer (MR 3497)
Rebased our work on top of latest upstram alsa-ucm-conf.
The beryllium ucm conf is also reworked to fix wrong default audio device issue
and now headphones auto-switching on plugin also works as expected.

Adding myself as a co-maintainer for this package.

Change-Id: I360c60d1675c884c9e85cd95f940fa6cb4b75e83
Signed-off-by: Joel Selvaraj <joelselvaraj.oss@gmail.com>
2022-10-24 09:46:38 +02:00
Alexander Martinz e5334cd8fa community/linux-postmarketos-qcom-sdm845: upgrade to 6.0.3 and update co-maintainer email id (MR 3497)
Change-Id: I986b3401fd81ac18b7336f8f0be53e2cf4c4515c
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Signed-off-by: Joel Selvaraj <joelselvaraj.oss@gmail.com>
2022-10-24 09:46:34 +02:00
Newbyte 63e8cff254 main/postmarketos-ui-phosh: replace gedit with gnome-text-editor (MR 3551)
Text Editor is a new modern text editor for GNOME. It is the new
default, replacing gedit upstream. As such, let's do the same here
downstream.

[ci:skip-vercheck]: pkgrel bump is not necessary when changing
recommends.
[ci:skip-build]: already built successfully in CI
2022-10-24 09:39:26 +02:00
Newbyte 665bcc199d temp/dino: drop (MR 3575)
For whatever reason, Alpine includes the mobile adaptivity patches for
this app:
https://gitlab.alpinelinux.org/alpine/aports/-/blob/cb88c5701fd93e78b133e746c6c3fa6db0001c66/community/dino/mobile-ui.patch

As such, drop our fork since it's unnecessary.

Reported-by: Airtower
2022-10-24 08:53:07 +02:00
Newbyte 445e530314 temp/xkeyboard-config: drop (MR 3573)
The PinePhone keyboard patches should be available in upstream
xkeyboard-config since version 2.36.
2022-10-24 08:49:16 +02:00
Mithil Bavishi fb9bc89df8 linux-samsung-espresso3g: remove (MR 3563)
[ci:skip-build]: ollie verified it builds locally
2022-10-23 14:01:38 +02:00
Mithil Bavishi 784919ce5e samsung-espresso3g: use linux-postmarketos-omap (MR 3563) 2022-10-23 14:01:33 +02:00
Mithil Bavishi e34cce6e0f community/linux-postmarketos-omap: upgrade to 6.0.2 (MR 3563) 2022-10-23 14:01:28 +02:00
Alexey Min adcc988069 temp/dino: rebuild against new libicuuc.so (MR 3568)
[ci:skip-build]: Already built successfully in CI
2022-10-22 15:41:56 +02:00
Clayton Craft 052fdf55ac linux-purism-librem5: upgrade to 6.0.2 (MR 3570)
[ci:skip-build]: Already built successfully in CI
2022-10-22 13:32:58 +02:00
Sergey Lisov 8d07a9897a mdoem/libsamsung-ipc: upgrade to 6.0.0004 (MR 3456)
1. Upgrades the library to version 6.0.0004
2. Adds runtime overrides for detected device and board,
   to facilitate running on devices where autodetect fails.
2022-10-21 15:19:07 +03:00
Sicelo A. Mhlongo 45aaac6d30 linux-nokia-n900: fix usbnet regression (MR 3567)
After c49180f8cf, usbnet did not come up on N900
automatically since the UDC probed a little late. Fix this by making the driver
built-in.

While at it, make watchdog built-in so it can be kicked even when boot takes
long for any reason.

[ci:skip-build]: already built successfully in CI
2022-10-21 09:17:26 +02:00
Jan Jasper de Kroon a526c9213d linux-pine64-pinephonepro: add WiFi CVE backports (MR 3552)
These are the patches added to mitigate the CVE's which have been found in wifi stack.
More information on these CVE's can be found over here: https://seclists.org/oss-sec/2022/q4/20

[ci:skip-build]: Already built successfully in CI
2022-10-20 19:04:43 +02:00
Bobby The Builder 5c42cad7a6 linux-postmarketos-allwinner: regenerate config and enable ARM CPU Idle driver (MR 3564)
[ci:skip-build]: Already built successfully in CI
2022-10-20 18:57:23 +02:00
Luca Weiss dc9e47ae00 cross/{binutils,gcc,musl}-riscv64: new aport (MR 3559)
Use pmbootstrap aportgen to generate these new packages.

[ci:skip-vercheck]
2022-10-20 18:52:37 +02:00
Newbyte eafbfdc95c temp/megapixels-purism: rebuild against libcamera 0.0.1 (MR 3565)
[ci:skip-build]: Already built successfully in CI
2022-10-20 09:50:58 +02:00
Yassine Oudjana 2837bdb657 community/linux-postmarketos-qcom-msm8996: upgrade to 6.0.2 (MR 3561)
[ci:skip-build]: already built successfully in CI
2022-10-20 09:21:42 +02:00
Lorenz Wildberg d6931ca312 temp/gnome-shell-mobile: upgrade to 43.0 (MR 3555)
[ci:skip-build]: Already built successfully in CI
2022-10-19 13:02:46 +02:00
Lorenz Wildberg 924a2cb8d3 temp/mutter-mobile: upgrade to 43.0 (MR 3555) 2022-10-19 13:02:41 +02:00
Luca Weiss 5985852e77 temp/gtk+3.0: fix build (MR 3557)
Pick some patches from gtk 3.24.34 to fix compilation under GCC 12.

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-10-19 09:05:15 +02:00
Sicelo A. Mhlongo c49180f8cf linux-nokia-n900: apply wifi cve fixes (MR 3558)
- Downgrade kernel from EOL 5.18 to LTS 5.15 in order to apply WiFi CVE fixes.
  It is currently not possible to upgrade to newer (5.19+) kernels due to a USB
  regression.
- Modify 0005-iio-accel-st-accel-add-lis302dl.patch so it applies on 5.15.74
- Reinstate 0008-wl1251-specify-max.-IE-length.patch for nl80211 support. Patch
  was dropped because it is in mainline since 5.18

[ci:skip-vercheck]: downgrade
[ci:skip-build]: already built successfully in CI
2022-10-19 08:34:43 +02:00
Alexander Martinz 13046d8972 community/linux-postmarketos-qcom-sdm845: upgrade to 5.19.16 (MR 3556)
For a merge list, please see the merge commits:
  - 5.19.13 - (https://gitlab.com/sdm845-mainline/linux/-/commit/6384fddb508e3af48adade641fc74e124085d1ee)
  - 5.19.14 - (https://gitlab.com/sdm845-mainline/linux/-/commit/85caddc9c87626e005000b45d724371d7c8ad177)
  - 5.19.15 - (https://gitlab.com/sdm845-mainline/linux/-/commit/fca27cdc51f207b1acbc66e896382d3240650f60)
  - 5.19.16 - (https://gitlab.com/sdm845-mainline/linux/-/commit/9aa25bf492928bc7a4542e87d28919c9ac36d27c)

Note: This is an important release, as 5.19.16 fixes the recently
      published wifi stack vulnerabilities.

Change-Id: Iffff2c65bdd697b01bc5d8fc090e9a2f2577c701
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-10-18 10:54:34 +02:00
Caleb Connolly 82ad096a42 CODEOWNERS: add Alex to axolotl codeowners (MR 3547) 2022-10-18 09:55:49 +02:00
Newbyte 99abd2fdf0 linux-postmarketos-stericsson: upgrade to 5.19.8 (MR 3307)
Also enable iwd options and disable ux500 crypto hardware driver due to
bugs.

[ci:skip-build]: already built successfully in CI
2022-10-18 09:48:47 +02:00
Jan Jasper de Kroon 62bd0f84bd linux-postmarketos-allwinner: upgrade to 6.0.2 - 1017-0205 Megi Tag (MR 3553)
This updates the APKBUILD with the new Megi 6.0.2 tag release.
The 2 incremental patches on top of 6.0 have hereby been removed.

[ci:skip-build]: already built successfully in CI
2022-10-18 09:17:11 +02:00
Alexey Min 4fe645dead main/lk2nd: upgrade to 0.13.0 (MR 3554)
- Support for the huawei-g7 display panel in lk1st
- FS based boot is skipped when going to the recovery
- Generate image without appended dtb for lk2nd-msm8226
- Some bug fixes and device improvements

New devices:
 - Samsung Galaxy Ace 4 (SM-G357FZ)
 - Samsung Galaxy Grand 2 (SM-G7102)
 - Samsung Galaxy Grand Max (SM-G720AX)
 - Samsung Galaxy Tab 4 10.1 (2014) (SM-T530)
 - Huawei Ascend G6 L11 LTE
 - Some new variants for the existing Samsung devices

Changelog: https://github.com/msm8916-mainline/lk2nd/releases/tag/0.13.0
2022-10-18 02:03:55 +03:00
Oliver Smith 89a5382518 cross/gcc-*: add fixme note for the isl workaround (MR 3548)
Make sure we drop !tracedeps next time when upgrading the gcc packages
(after Alpine's gcc has been upgraded). The workaround we have in
pmbootstrap is tied to the current version, and that's the only way we
can remove it for good. The FIXME line can be deleted after this has
been done. Note that current 'pmbootstrap aportgen gcc-*' code will
automatically remove the !tracedeps option - a reminder to double check
it.

[ci:skip-build] [ci:skip-vercheck]: just adding a comment
2022-10-16 18:11:21 +02:00
Caleb Connolly 94b2f1a6f0 CODEOWNERS: sdm845 and axolotl (MR 3546)
* Specify the whole sdm845-mainline group for *-qcom-sdm845 packages.
* Add myself and Dylan for axolotl
2022-10-16 17:28:01 +02:00
Caleb Connolly 6a161e0a2d CODEOWNERS: reformat (MR 3546)
* Switch to tab indenting with tab size 8 to improve rendering
* Fix my entries (missing trailing /)
2022-10-16 17:28:01 +02:00
Newbyte d0d05b39cd main/boot-deploy: upgrade to 0.6.1 (MR 3534) 2022-10-16 17:19:57 +02:00
blacksilver ff797d6bfe samsung-xcover3lte: use samsung sparse format (MR 3500)
RootFS cannot be flashed on this devices since Samsung uses a different sparse format.
Enable this in the deviceinfo file to allow flashing the rootFS.

[ci:skip-build]: already built successfully in CI
2022-10-16 16:46:43 +02:00
Newbyte 2f8a5bf400 linux-postmarketos-exynos4: upgrade to 6.0.2 (MR 3539)
Part of https://gitlab.com/postmarketOS/pmaports/-/issues/1749
[ci:skip-build]: already built successfully in CI
2022-10-16 16:32:37 +02:00
Anjandev Momi 20713e27a3 editorconfig-check: set "tabs for indentation, spaces for alignment" style (MR 3530)
https://github.com/editorconfig-checker/editorconfig-checker/issues/66
[ci:ignore-count] [ci:skip-build]: already built successfully in CI
2022-10-16 16:27:25 +02:00
Anjandev Momi e7a8141113 CI: check if most text files have final_newline and conform to editorconfig (MR 3530)
fixes #592
2022-10-16 16:27:25 +02:00
Anjandev Momi 7270f472e3 treewide: fix tabs, final newline, trailing whitespace (MR 3530) 2022-10-16 16:27:22 +02:00
Martijn Braam 8ff73a7de4 pine64-pinebookpro: enable deep sleep (MR 3543)
After testing 6.0.0 I retried deep sleep and it seems to work fine now

[ci:skip-build]: already built successfully in CI
2022-10-16 16:07:00 +02:00
Jan Jasper de Kroon 97ed826c3c linux-postmarketos-rockchip: upgrade to 6.0.2
This kernel upgrade comprises of 2 point releases 6.0.1 and 6.0.2.
the release from 6.0 to 6.0.2 is a regular maintenance release.
Kernel update 6.0.2 addresses 5 important CVE's in the Wifi stack.
More info can be found over here: https://seclists.org/oss-sec/2022/q4/20

[ci:skip-build]: already built successfully in CI
2022-10-16 16:03:21 +02:00
Jan Jasper de Kroon 32646621be linux-postmarketos-allwinner: upgrade to 6.0.2
This kernel update addresses 5 important CVE's in the Wifi stack.
More info can be found over here: https://seclists.org/oss-sec/2022/q4/20

[ci:skip-build]: already built successfully in CI
2022-10-16 15:01:28 +02:00
Oliver Smith 2b3254df32 CI: test_unreferenced_files: remove debug prints (MR 3545)
Drop these debug prints which I added while extending the test to work
with MR 3386.
2022-10-16 14:26:48 +02:00
Luca Weiss f007868914 community/linux-postmarketos-qcom-sm6350: upgrade to 6.0.2 (MR 3542)
* Merge 6.0.2 stable
* Add pm7250b PMIC to dts

[ci:skip-build] Already built successfuly on CI in MR
2022-10-16 13:47:54 +02:00
Raymond Hackley a8dbcc046f samsung-cprime: new device (MR 3103)
[ci:skip-build] Already built successfuly on CI in MR
2022-10-16 13:44:13 +02:00
Minecrell d4762ed74f community/linux-postmarketos-qcom-msm8916: upgrade to 6.0.2 (MR 3532)
- Update to Linux v6.0.2 (includes fixes for WiFi CVEs)
- Tweak kernel configuration slightly (especially crypto options)

[ci:skip-build] Already built successfuly on CI in MR
2022-10-16 13:15:35 +02:00
Minecrell 8f37872995 community/linux-postmarketos-qcom-msm8916: upgrade to 6.0.1 (MR 3532)
- Update to Linux v6.0.1
- Upstreamed some patches this time
- Fixed register address in smb1360 driver

Device changes:
  - samsung-gtelwifiue
    - Audio
    - Better USB detection
  - samsung-e5/e7/grandmax
    - Refactoring for changes that landed upstream
    - Key LED control

New devices:
  - samsung-cprime/heatqlte
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display, Brightness control (not for AMOLED on heatqlte)
    - Sensors (Accelerometer)
    - Sound/Modem
    - Battery status
    - NFC
    - NOTE: No touchscreen yet
2022-10-16 13:15:33 +02:00
Affe Null cb8105ee14 nokia-argon: new device (Nokia 8110 4G) (MR 3527)
Initial Nokia 8110 4G port with close-to-mainline kernel.

[ci:skip-build] Already built fine on CI in MR
2022-10-16 11:19:17 +03:00
Affe Null f27500700e linux-postmarketos-qcom-msm8909: close-to-mainline kernel for MSM8909 (MR 3527) 2022-10-16 11:18:15 +03:00
Affe Null 10df987e0e main/mipi-dbi-cmd: tool for generating SPI panel init sequence firmware (MR 3527) 2022-10-16 11:18:04 +03:00
Alexey Minnekhanov 4144c7631f main/postmarketos-config-nftables: use versioned constraints in install_if (MR 3536)
Consistently use `install_if="$pkgname=$pkgver-r$pkgrel ...` everywhere,
this is recommended upstream.

See https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#install_if
2022-10-16 08:19:21 +03:00
Raymond Hackley 1efe44bb36 main/postmarketos-config-nftables: add VLC chromecast rules (MR 3536) 2022-10-16 08:08:54 +03:00
Luca Weiss afc11656d8 ci: unreferenced: skip cross/ (MR 3541)
It thinks that the gcc-go.post-install files from the new cross/gcc-*
packages isn't used because those add subpackages dynamically in the
APKBUILD which isn't handled.
2022-10-15 23:26:29 +02:00
Newbyte 2c5274eeed cross/gcc-armv7: upgrade to 12.2.1_git20220924-r3 (MR 3541) 2022-10-15 18:11:21 +02:00
Newbyte 57d953746e cross/gcc-armhf: upgrade to 12.2.1_git20220924-r3 (MR 3541) 2022-10-15 18:11:06 +02:00
Newbyte 192ca97cd5 cross/gcc-aarch64: upgrade to 12.2.1_git20220924-r3 (MR 3541) 2022-10-15 18:10:16 +02:00
Newbyte 4818c2c2cd linux-postmarketos-exynos4: enable zstd compression (MR 3522) 2022-10-15 13:10:31 +02:00
Henrik Grimler 2c68614713 linux-postmarketos-exynos4: update patch 0005 after kernel upgrade (MR 3522)
Our patch needs to be adjusted after commit 58e4a2d27d32 ("extcon: Fix
extcon_get_extcon_dev() error handling").  Also generate all other
patch headers, and make it possible to apply patch 0008 and 0009 with
git am.
2022-10-15 13:10:31 +02:00
Martin Jücker b15f448999 linux-postmarketos-exynos4: add missing lcd patches for p4note (MR 3522) 2022-10-15 13:10:28 +02:00
Martin Jücker 4668038a9a linux-postmarketos-exynos4: update to 6.0.1 (MR 3522) 2022-10-15 13:09:41 +02:00
Anton Bambura 5ec845da6e linux-postmarketos-rockchip: drop armv7 and upgrade to 6.0 (MR 3526)
[ci:skip-build] Already built successfuly on CI in MR
2022-10-14 12:41:30 +02:00
Jami Kettunen bd2cdfbaf4 device-oneplus-dumpling: get linux-edge(-6.0.1) booting again (MR 3531)
Additionally switch mainline kernel from qcom_fg to bq27xxx_battery_i2c.

While at it simplify the deviceinfo_modules_initfs_alpine list to
exclude implicit dependencies that mkinitfs can find itself to make the
line length a bit less unwieldy.

[ci:skip-build] Already built successfuly on CI in MR
2022-10-14 11:56:06 +02:00
Jami Kettunen 1769b565ed device-oneplus-cheeseburger: get linux-edge(-6.0.1) booting again (MR 3531)
Additionally switch mainline kernel from qcom_fg to bq27xxx_battery_i2c
and probe the correct panel driver, this was a regression that came from
the initial linux-edge enablement MR.

While at it simplify the deviceinfo_modules_initfs_alpine list to
exclude implicit dependencies that mkinitfs can find itself to make the
line length a bit less unwieldy.
2022-10-14 11:55:58 +02:00
Jami Kettunen d6f337898e device-oneplus-dumpling: block auto-loading ipa module (MR 3531)
While this provides the ability to use ModemManager, there are quite a
lot of issues with the driver still; keep it enabled in kernel for now
and let users "modprobe ipa" if they want to test modem features
whichever side effects that may cause including:
- Making the device nearly impossible to poweroff or reboot
- Making the UI lag noticeably more due to some interconnect bandwidth
  issues
2022-10-14 11:55:58 +02:00
Jami Kettunen 68cdc1ea2b device-oneplus-cheeseburger: block auto-loading ipa module (MR 3531)
While this provides the ability to use ModemManager, there are quite a
lot of issues with the driver still; keep it enabled in kernel for now
and let users "modprobe ipa" if they want to test modem features
whichever side effects that may cause including:
- Making the device nearly impossible to poweroff or reboot
- Making the UI lag noticeably more due to some interconnect bandwidth
  issues
2022-10-14 11:55:58 +02:00
Jami Kettunen 59716b061d linux-postmarketos-qcom-msm8998: upgrade to 6.0 (MR 3531) 2022-10-14 11:55:58 +02:00
Jami Kettunen 7bdacb41c1 device-oneplus-cheeseburger: workaround wrong touch rotation on PlaMo (MR 3531)
This will have to do until https://invent.kde.org/teams/plasma-mobile/issues/-/issues/160
is solved; the display orientation will remain upside down upon
installation but at least the touchscreen coordinates are correct now.
2022-10-14 11:55:57 +02:00
Jami Kettunen e8fa0d7448 device-oneplus-dumpling: start using soc-qcom-msm8998 (MR 3531) 2022-10-14 11:55:57 +02:00
Jami Kettunen 2fde525443 device-oneplus-cheeseburger: start using soc-qcom-msm8998 (MR 3531) 2022-10-14 11:55:57 +02:00
Jami Kettunen fbd0ebc602 firmware-oneplus-msm8998: use as much as possible from linux-firmware-* (MR 3531)
The qca (Bluetooth) and qcom (non-zap GPU) firmware blobs don't need to
be signed by the OEM, so let's use upstream versions to benefit from
fixes and updates done there.
2022-10-14 11:55:57 +02:00
Jami Kettunen 8ed8d07043 soc-qcom-msm8998: new aport (MR 3531)
The soc-qcom-sdm845* packages are mostly sufficient, but there are a few
issues that all MSM8998 devices on mainline will face, so include
workarounds for them in a generic package all device pkgs can depend on.
2022-10-14 11:55:57 +02:00
Jami Kettunen 57492bf7da soc-qcom-sdm845: move some deps to nonfree subpackage (MR 3531)
Both msm-modem-uim-selection and bootmac depend on nonfree firmware to
be useful, so put them under soc-qcom-sdm845-nonfree-firmware.
2022-10-14 11:55:57 +02:00
Raymond Hackley e0fa89db06 postmarketos-config-nftables: fix syntax errors and coding styles (MR 3535) 2022-10-14 09:35:31 +02:00
reisl fb209f5eeb device-samsung-beyond1lte: fix flashing (MR 3477) 2022-10-14 09:25:12 +03:00
reisl 33d1eef6e7 linux-samsung-beyond1lte: add OTG and vlan network support (MR 3477) 2022-10-14 09:24:08 +03:00
Anton Bambura 330420c648 veyron chromebooks: use linux-google-veyron (MR 3524)
[ci:skip-build] Already built successfuly on CI in MR
2022-10-13 15:48:58 +02:00
Anton Bambura bc70ccdcf4 linux-google-veyron: separate from linux-postmarketos-rockchip and upgrade to 6.0 (MR 3524)
Also, add patches for better HDMI support
2022-10-13 15:47:17 +02:00
Clayton Craft 325cc8e483 linux-purism-librem5: upgrade to 6.0
- the config diff is just rebasing

- drops the ship mode patch I wrote, since it is no longer required
  after a pending update to the device-purism-librem5 package...

- drops the dogwood voltage patch, apparently no longer necessary,
  see: https://source.puri.sm/Librem5/linux/-/issues/442#note_214984

- drops the usdhc bus patch
  see: https://source.puri.sm/Librem5/linux/-/issues/442#note_215026

[ci:skip-build] already built successfully in CI
2022-10-13 06:09:10 -07:00
Jami Kettunen e10cf4fadc testing/linux-*: rename kconfigcheck-anbox to kconfigcheck-waydroid (MR 3507)
This renamed option is being checked for since pmbootstrap 1.47.0[1].

[1] https://gitlab.com/postmarketOS/pmbootstrap/-/tags/1.47.0

[ci:skip-build]
[ci:skip-vercheck]
2022-10-13 13:44:30 +02:00
Raymond Hackley b1e1d7f6d3 postmarketos-config-nftables: add upnp-client rules (MR 3533)
Add rules to accept SSDP/UPnP Replies, which can be used for discovery
in VLC.
2022-10-13 13:12:53 +02:00
Jan Jasper de Kroon 130e15f2ec linux-postmarketos-allwinner: upgrade to 6.0.1_git20221004 (MR 3518) 2022-10-13 10:40:29 +02:00
Oliver Smith f8ce8ef0e3 teclast-x80pro: drop device (MR 3528)
Kernel doesn't compile anymore, and it doesn't seem worth fixing it
again. The kernel has been added in 2017 as a stock mainline kernel from
that time with only two patches and wasn't maintained since then,
looking at git log --follow it was only patched to fix it up when
it didn't build.

As the device is a generic x86_64 tablet: if somebody has that
particular device, try to get the generic device-tablet-x64uefi running
instead.
2022-10-13 09:46:01 +02:00
Luca Weiss 570f7a50b5 community/device-fairphone-fp4: add qbootctl & swclock-offset (MR 3529)
The qbootctl service tells the bootloader that the current boot has
succeeded, so that the bootloader doesn't switch to the other slot after
~7 tries.

The swclock-offset dependency ensures that the time is set correctly
after a reboot, caused by the read-only RTC on Qualcomm.

[ci:skip-build]: already built successfully in CI
2022-10-13 09:37:15 +02:00
Brendan Hardy 29d3abe94d motorola-shamu: port from armhf to armv7 (MR 3415)
[ci:skip-vercheck]
2022-10-12 22:35:57 +02:00
Dang Huynh ae252a05a4 device-nokia-n900: use wl1251-cal for calibration data (MR 3386) 2022-10-12 21:39:13 +02:00
Dang Huynh 69510f79f7 main/wl1251-cal: new pkgbuild (MR 3386)
This program grabs the WLAN calibration data from a NAND partition
on the Nokia N900.

Signed-off-by: Dang Huynh <danct12@disroot.org>
2022-10-12 21:39:12 +02:00
Oliver Smith 4cd4463a21 ci: unreferenced: handle triggers from subpackages (MR 3386)
Depends: pmbootstrap MR 2202
2022-10-12 21:39:12 +02:00
Oliver Smith b01974179c ci: unreferenced: refactor subpackage_installs (MR 3386)
Make it shorter in preparation for adding the same thing for triggers.
2022-10-12 21:39:12 +02:00
Anton Bambura e3904d8796 mt8183 devices: depend on soc-mediatek-mt8183 (MR 3525)
[ci:ignore-count]
2022-10-12 11:20:17 +02:00
Anton Bambura e384f479f2 soc-mediatek-mt8183: new aport (MR 3525) 2022-10-12 11:20:17 +02:00
Jami Kettunen 1d88d8bcdd main/waydroid-image: remove (MR 3508)
This has been out-of-date for almost a year with seemingly stalled
progress on the existing upgrade MR[1] for months now; it really seems
like no one wants to maintain this which currently leaves this
"force-installed-by-default" packaged image broken on all wlroots-based
Wayland compositors for example.

[1] https://gitlab.com/postmarketOS/pmaports/-/merge_requests/3091 ("Draft: main/waydroid-image: upgrade to 17.1.20220419")
2022-10-12 08:57:01 +02:00
knuxify 419cd8bf46 temp/gnome-shell-mobile: don't build against libsoup2 (MR 3523)
Fixes #1735.

[ci:skip-build]: already built successfully in CI
2022-10-12 08:17:16 +02:00
Henrik Grimler bd7c8d15ad linux-postmarketos-exynos5: re-generate patch headers (MR 3516)
Patch header for 0027 was not formatted correctly.  Fix that and
re-generate all other patches while we are at it.

[ci:skip-build] Already built successfuly on CI in MR
2022-10-11 18:39:46 +02:00
Anton Bambura ca3069185b google-snow: add MFC firmware (MR 3516) 2022-10-11 18:39:45 +02:00
Anton Bambura 851d946b72 google-peach-pit: add MFC firmware (MR 3516) 2022-10-11 18:39:45 +02:00
Anton Bambura 24cf355714 google-peach-pi: add MFC firmware (MR 3516) 2022-10-11 18:39:44 +02:00
Anton Bambura 8acf002c17 linux-postmarketos-exynos5: upgrade to 5.18.5 (MR 3516)
Also:

Fix camera on google-snow.

Enable video decoder.

Make boot.img smaller making kernel more modular and making FS-related
modules =y instead of =m (built-in file systems consume less space
than initramfs modules).
2022-10-11 18:39:43 +02:00
Oliver Smith 03ceddb284 CI: check mesa-dri-gallium dependency for devices (MR 3478)
Devices should not depend on it anymore to allow a more minimal install.
postmarketos-base will pull it in if mesa is installed.

[ci:ignore-count]
2022-10-11 11:19:53 +02:00
Newbyte 270e5e28ad device: drop depend on mesa-dri-gallium (MR 3478)
This is now installed by postmarketos-base when appropriate.
2022-10-11 11:19:43 +02:00
Minecrell 5f140538bf main/postmarketos-base: install mesa-dri-gallium only if needed (MR 3478)
At the moment almost all device packages force installation of the Mesa
drivers, even when they are not used by any application (for example on
a minimal headless installation with "none" or "console" UI).
Omitting mesa-dri-gallium from such installations saves about ~150 MiB
of disk space (469 MiB -> 317 MiB rootfs for minimal installation on
arrow-db410c).

The "classic" drivers have been removed from Mesa so only one mesa-dri-
package exists now: mesa-dri-gallium contains all Mesa drivers,
llvmpipe, freedreno, lima, panfrost, Intel (iris/crocus), ...

This means we can easily create an install_if package in
postmarketos-base that installs that driver package only if needed
(= only if another package requires the "mesa" package).

Strictly speaking the install_if could be restricted further since
mesa-dri-gallium is only needed by "mesa-egl", "mesa-gbm" and "mesa-gl"
but not e.g. the Vulkan drivers. Having three postmarketos-base
subpackages (one install_if for each of them) seems a bit
overengineered, though. "mesa" is a common dependency of all three
of them, so using install_if="... mesa" should be good enough.
2022-10-11 11:19:30 +02:00
Clayton Craft e27f63fd40 gnome-shell-mobile: depend on font-cantarell (MR 3521)
renamed in aports@9a0b06a175
2022-10-10 19:10:47 -07:00
Clayton Craft 03b842f3d7 postmarketos-splash: depend on font-droid (MR 3521)
renamed in aports@924a022f24
2022-10-10 18:53:37 -07:00
Clayton Craft 2023292d64 postmarketos-mkinitfs-hook-console-shell: change path to dejavu font (MR 3521)
renamed in aports@ee78772612

this also adds an explicit dependency on the font, since it may not have
been installed if postmarketos-ui-base was installed... (e.g. ui=None)
2022-10-10 18:53:37 -07:00
Clayton Craft 7327bd393f main/*: depend on font-dejavu (MR 3521)
renamed in aports@ee78772612
2022-10-10 18:53:35 -07:00
Newbyte 5c161ce834 mt8183 devices: update kernel dependency name (MR 3512)
[ci:ignore-count]
[ci:skip-build] already built successfully in CI
2022-10-10 18:12:13 -07:00
Newbyte 1ec0acca36 linux-postmarketos-mediatek-mt8183: rename from linux-postmarketos-mtk-mt8183 (MR 3512)
See https://gitlab.com/postmarketOS/pmaports/-/merge_requests/3475#note_1118700476
2022-10-10 18:12:13 -07:00
Oliver Smith 86a787ffd9 linux-wiko-lenny5: drop python2 dependency (MR 3519)
Don't run python2 drvgen.

Related: https://wiki.postmarketos.org/wiki/Porting_to_a_new_device#Removing_python2_dependency

[ci:skip-build] Already built successfuly on CI in MR
2022-10-10 21:21:55 +02:00
Oliver Smith ce93fd7188 linux-lenovo-p1m: fix dependencies (MR 3519)
It builds just fine with the python2 dependency removed, probably copy
pasted from another kernel. And apk-tools definitively should not be in
there.
2022-10-10 21:21:22 +02:00
Oliver Smith 4b045d8f33 linux-alcatel-5010d: drop python2 dependency (MR 3519)
Don't run python2 drvgen.

Related: https://wiki.postmarketos.org/wiki/Porting_to_a_new_device#Removing_python2_dependency
2022-10-10 21:21:21 +02:00
Jakob Hauser 6b2cd8133c main/postmarketos-ui-xfce4: remove xfce4-battery-plugin and icon link (MR 3503)
The xfce4-battery-plugin doesn't need to be installed anymore since we
switched to the "power manager plugin" in postmarketos-ui-xfce4 0.5.0.

The link to the old PostmarketOS icon isn't needed anymore for new
installations.

[ci:skip-build]: already built successfully in CI
2022-10-10 17:30:22 +02:00
Anton Bambura dd5b85b210 google-veyron-speedy: set deviceinfo_cgpt_kpart_start to 24576 (MR 3517)
This will be needed for	booting	from eMMC.

[ci:skip-build]: already built successfully in CI
2022-10-10 17:17:10 +02:00
Anton Bambura ef31cc225e google-veyron-minnie: set deviceinfo_cgpt_kpart_start to 24576 (MR 3517)
This will be needed for booting from eMMC
2022-10-10 17:16:55 +02:00
Oliver Smith e1ef261c86 Partially revert "linux-*: install dtbs to /boot/dtbs (MR 3254)
Reverts commit 70efe55031 for kernels that
started failing on bpo. I suspect it's caused by a change in binutils,
since I tried building linux-oneplus-billie2 with gcc6 and got the same
error (after trying other workarounds like disabling selinux for it, but
then it failed elsewhere).
2022-10-10 07:34:03 +02:00
Clayton Craft 4b72fbd9da main/osk-sdl: upgrade to 0.67.1, change font dep and add patch to fix path
the ttf-dejavu package was renamed[1] and the path to the font file
changes.

https://gitlab.alpinelinux.org/alpine/aports/-/commit/ee787726123a4ff2dbd19460e53467d891f52456

fixes https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/15
2022-10-09 14:34:23 -07:00
Elagost a292830ef9 device-pine64-pinephone: add kxkbrc for plasma-mobile pinephone-keyboard (MR 3438) 2022-10-09 12:45:35 -05:00
Newbyte 60d4821f68 CI: add dtb location check (MR 3254)
[ci:ignore-count]: Too many packages probably
[ci:skip-build]: No way this would finish in time
2022-10-09 17:04:36 +02:00
Newbyte a1f8eecde7 linux-postmarketos-qcom-msm8939: update checksums (MR 3254)
Checksums changed for some reason? ???

[ci:ignore-count]: Too many packages probably
[ci:skip-build]: No way this would finish in time
2022-10-09 17:04:36 +02:00
Newbyte 381ffe19cf samsung-starqltechn: update fdt data path to reflect new dtb location (MR 3254) 2022-10-09 17:04:36 +02:00
Newbyte 0308b77c47 lark-freeme-70-2s: remove dtb location workaround (MR 3254)
See previous commit for rationale.
2022-10-09 17:04:35 +02:00
Newbyte b9bb6bbba8 goclever-gcta741l: remove dtb location workaround (MR 3254)
We previously installed dtbs outside of the boot partition, so it
was necessary to copy them from the root partition to boot if you
wanted to utilise them in U-Boot scripts. This is no longer
necessary as we now install dtbs to the boot partition directly, so
remove this workaround and edit the U-Boot script to reflect the
change.
2022-10-09 17:04:35 +02:00
Newbyte 70efe55031 linux-*: install dtbs to /boot/dtbs (MR 3254)
[ci:ignore-count]: Too many packages probably
[ci:skip-build]: No way this would finish in time
2022-10-09 17:04:30 +02:00
Dylan Van Assche 90c11c46ca main/device-pine64-pinephone: refactor fwupd plugins (MR 3513)
fwupd 1.8.6 has all plugins builtin, remove subpackages
2022-10-09 16:22:38 +02:00
Dylan Van Assche 08bed11db5 community/device-shift-axolotl: refactor fwupd plugins (MR 3513)
fwupd 1.8.6 has all plugins builtin, remove subpackages
2022-10-09 16:22:19 +02:00
Dylan Van Assche 2867af783a community/device-pine64-pinephonepro: refactor fwupd plugins (MR 3513)
fwupd 1.8.6 has all plugins builtin, remove subpackages
2022-10-09 16:22:03 +02:00
Newbyte fa048b7517 main/postmarketos-base-ui: run SDL in Wayland mode by default (MR 2669)
This is possible now that all SDL (1) applications use sdl12-compat
instead of "classic" SDL 1.2. Note that this only is applied to user
interfaces that use Wayland and are launched through tinydm.

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12739
2022-10-09 15:23:59 +02:00
Richard Acayan bfe586d720 google-sargo: add maintainer (MR 3488)
I can maintain this device.

[ci:skip-build] Already built successfuly on CI in MR
2022-10-08 22:10:44 +02:00
Richard Acayan 353297c656 google-sargo: depend on sdm845 soc package (MR 3488)
Some SDM845-specific configurations and packages are also useful for the
Pixel 3a:
 - mesa-dri-gallium
 - qbootctl
 - swclock-offset
2022-10-08 22:10:39 +02:00
Richard Acayan 161f0751b7 google-sargo: enable automatic kernel upgrade (MR 3488) 2022-10-08 22:10:38 +02:00
Richard Acayan c368b64135 google-sargo: alphabetically sort dependencies (MR 3488)
One dependency is not alphabetically sorted. Put it in its place so
the placement of the next additions make sense.
2022-10-08 22:10:38 +02:00
Richard Acayan 7be1ac7f84 google-sargo: switch to close-to mainline kernel (MR 3488)
Note: This kernel does not have support for flash LED or haptics.
2022-10-08 22:10:38 +02:00
Newbyte 29f7006d5d main/postmarketos-ui-plasma-mobile: ttf-droid-nonlatin -> font-droid-nonlatin (MR 3506)
This was renamed in aports: https://gitlab.alpinelinux.org/alpine/aports/-/commit/924a022f242a928be94da4c616218d3fe8ee9ffe

[ci:skip-vercheck]
2022-10-08 19:14:51 +02:00
choc 0921691cbe testing/samsung-gts28velte: new device (MR 3384)
based on samsung-gts210velte

[ci:skip-build] Already built successfuly on CI in MR
2022-10-08 13:24:35 +02:00
Anton Bambura 6d77ccc0e2 google-elm: new device (MR 3505)
[ci:skip-build] Already built successfuly on CI in MR
2022-10-08 13:11:29 +02:00
Anton Bambura 602ecf8bdf google-hana: new device (MR 3505)
This device package represents several devices, so use plural form in
pkgdesc of APKBUILD:

pkgdesc="Google Hana Chromebooks"

However, when deviceinfo is already installed, it is intended to represent
only current device, so use singular form here:

deviceinfo_name="Google Hana Chromebook"
2022-10-08 13:10:49 +02:00
Anton Bambura fc256d626b firmware-powervr-gx6250: new aport (MR 3505) 2022-10-08 13:10:44 +02:00
Anton Bambura c5443e33fd linux-postmarketos-mediatek-mt8173: new aport (MR 3505) 2022-10-08 13:10:39 +02:00
Jakob Hauser b016cef0b2 main/postmarketos-ui-mate: add elogind (MR 3502)
That way rfkill plugin allows to use media keys for WiFi and Bluetooth.
And a suspend button becomes available in the shutdown dialog.
2022-10-08 10:46:42 +02:00
Sergey Lisov ad454e784d modem/samsungipcd: new aport (MR 3460)
Emulates an AT serial modem using libsamsung-ipc
2022-10-07 21:44:11 +02:00
Oliver Smith a53224a8e7 {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498)
Don't build with !tracedeps, as otherwise the isl dependency is not
properly added to the built gccs. In practice this probably doesn't
matter since we only use these old gccs to build kernels in the native
chroots (not via crossdirect in foreign arch chroots), and we also
install a proper gcc in the native chroot that pulls in the isl
dependency. But fix it for correctness.

Related: pmaports issue 1732

[ci:skip-build] Already built successfuly on CI in MR
2022-10-07 21:36:17 +02:00
Clayton Craft 67b5efcea1 device-purism-librem5: upgrade to 1.34 (MR 3501)
- update to use librem5-base v52
- install usbguard config / new subpackage
- move xorg.conf to new x11 subpackage
- refactor udev rule install to just install everything available from
  librem5-base upstream
- use purism's shipmode script, see:
  https://source.puri.sm/Librem5/linux/-/merge_requests/333#note_195511
2022-10-07 21:31:45 +02:00
Yassine Oudjana e345f8fae1 samsung-grandpplte: new device (MR 3475)
Add device package for Samsung Galaxy Grand Prime+ (grandpplte).
This device uses U-Boot as a secondary bootloader.
2022-10-07 20:00:12 +02:00
Yassine Oudjana f455193c4a testing/mt6735-bootshim: new package (MR 3475)
Add package for MT6735 aarch64 boot shim, needed for booting arm64
Linux on samsung-grandpplte.
2022-10-07 20:00:12 +02:00
Yassine Oudjana 3601a50cc5 testing/u-boot-grandpplte: new package (MR 3475)
Add package of U-Boot fork for MT6735 with samsung-grandpplte
configuration.
2022-10-07 20:00:11 +02:00
Yassine Oudjana 60256d230e testing/linux-postmarketos-mediatek-mt6735: new package (MR 3475)
Add kernel package for MediaTek MT6735 mainline fork.
2022-10-07 20:00:10 +02:00
Bart Ribbers 122fc4d75a main/postmarketos-ui-plasma-mobile: bump pkgrel
Seems to have been lost in a rebase on the previous commit, sorry
2022-10-07 19:07:33 +02:00
Bhushan Shah 40bd7f1ce8 Use postmarketOS artwork on plasma-mobile (#1464) (MR 3459)
(cherry picked from commit 302b6f5c29)
2022-10-07 09:36:30 +02:00
Bart Ribbers b5c5918126 main/postmarketos-ui-plasma-mobile: remove firefox (MR 3499)
We already ship Angelfish and shipping 2 browser takes up a lot of
space. Besides Angelfish feels more native in Plasma Mobile (being baed
on Qt and made for mobile) and has a built-in adblocker nowadays so it
seems like the better option.

urfkill hasn't been used for quite a while, no need to keep it around

Motivation for this change is that the image builds of the UI are
currently running out of space so we need to decrease the image size
2022-10-06 11:39:54 +02:00
Bart Ribbers 980660b14f main/postmarketos-ui-plasma-mobile: remove urfkill
It hasn't been needed for a while
2022-10-06 08:59:02 +02:00
Oliver Smith d93ba1f372 cross/busybox-static-*: upgrade to 1.35.0-r27 2022-10-06 08:46:53 +02:00
Alexey Minnekhanov 0d0da0e271 testing/device-samsung-hlte: add new panel module to initfs (MR 3493)
[ci:skip-build]: already built successfully in CI
2022-10-06 08:22:42 +02:00
Luca Weiss d42260fd6f testing/device-*: adjust dtbs for msm8974 5.19 kernel (MR 3493)
During the msm8974 cleanup that landed in 5.19 a bunch of dtbs were
renamed to have a better name. Adjust deviceinfo for those devices.
2022-10-06 08:22:39 +02:00
Luca Weiss 655b0e12dd testing/linux-postmarketos-qcom-msm8974: upgrade to 5.19.9 (MR 3493) 2022-10-06 08:22:39 +02:00
Jakob Hauser a7b31e4731 main/postmarketos-ui-{mate,xfce4}: replace pulseaudio-utils by pulseaudio (MR 3479)
Actually package pulseaudio is needed instead of pulseaudio-utils.
Package pulseaudio-utils then gets drawn in by postmarketos-base-ui
sub-package pulseaudio.

For Xfce4 this is a cosmetic change because pulseaudio gets installed
as a dependency of pavucontol already. Keeping pulseaudio in the
_pmb_reccomends list makes sense to be clear which pieces are needed.

For MATE an explicit installation of pulseaudio is needed because it
doesn't use pavucontrol.

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-10-06 08:17:30 +02:00
Jakob Hauser 485cb2c6bd main/postmarketos-ui-{mate,xfce4}: add alsa-plugins-pulse (MR 3472)
Package alsa-plugins-pulse forewards PulseAudio interfaces to ALSA.
This helps to clean up the mess of PulseAudio vs. ALSA.

[ci:skip-vercheck]
2022-10-06 01:48:06 +03:00
Minecrell 018b1a1a2d community/device-asus-me176c: switch to linux-edge (MR 3167)
Linux 5.18 brought better support for some x86-based Android tablets,
thanks to work from Hans de Goede. This includes asus-me176c: the
modified ACPI table and the Linux fork is no longer necessary,
it can just run linux-edge from Alpine.

Drop the old Linux 5.4 fork and related packages. Instead of using
the proprietary sound firmware from linux-firmware-intel, switch to
using the open-source(!) "Sound Open Firmware" (SOF).

NOTE: The mainline battery driver seems quite a bit less accurate
than the ugly old driver ported from the downstream driver. Also,
Bluetooth seems to fail on some boots now. Overall it works quite
well though. :)
2022-10-06 01:34:42 +03:00
Newbyte 1ebdc7f4ab temp/mutter-mobile: rebuild against latest gnome-desktop (MR 3486) 2022-10-05 20:49:20 +02:00
Newbyte 2528ac7e95 temp/gnome-shell-mobile: rebuild against latest evolution-data-server (MR 3486)
and gnome-desktop
2022-10-05 20:48:37 +02:00
Jami Kettunen abde87678f soc-qcom-sdm845: fix dependency typo of -vulkan subpackage (MR 3495)
Fixes:

  ERROR: unable to select packages:
    mesa-vulkan-freedreeno (no such package):
      required by: soc-qcom-sdm845-vulkan-9-r0[mesa-vulkan-freedreeno]

Reference: https://pkgs.alpinelinux.org/package/edge/main/aarch64/mesa-vulkan-freedreno
2022-10-05 14:52:08 +02:00
Newbyte c995738e07 main/postmarketos-ui-phosh: drop osk.sh (MR 3487)
Since c49d84f4ab1856156d26d59f5c88387776990d24 in Alpine's aports,
the sm.puri.OSK0.desktop service no longer tries to execute
/usr/bin/osk-wayland and instead just executes /usr/bin/squeekboard
directly, thus avoiding this needless indirection. virtboard hasn't
existed in postmarketOS for years at this point and squeekboard is
a hard dependency of phosh, so it's always going to be present
(thus making this check unnecessary) and the fallback if it isn't
wouldn't work anyway.

[ci:skip-build]: already built successfully in CI
2022-10-05 09:20:01 +02:00
Caleb Connolly c24bb158a6 soc-qcom-sdm845: automatically install vulkan support (MR 3494)
[ci:skip-build]: already built successfully in CI
2022-10-05 09:17:24 +02:00
Luca Weiss 686d217dd5 testing/device-lg-lenok: add mainline dtb reference (MR 3491)
[ci:skip-build]: already built successfully in CI
2022-10-05 09:06:22 +02:00
Luca Weiss faec786db5 testing/device-huawei-sturgeon: add mainline dtb reference (MR 3491) 2022-10-05 09:06:13 +02:00
Luca Weiss b1d4e6e45a testing/device-asus-sparrow: add mainline dtb reference (MR 3491) 2022-10-05 09:06:08 +02:00
Luca Weiss 52a8258a5e main/pil-squasher: remove (MR 3490)
Upstreamed to Alpine.
2022-10-04 22:48:30 +02:00
Anton Bambura 5b8c948efd google-willow: new device (MR 3489)
[ci:skip-build] Already built successfuly on CI in MR
2022-10-04 21:45:10 +02:00
Anton Bambura 5bc6b9d97c google-kodama: new device (MR 3489) 2022-10-04 21:45:09 +02:00
Anton Bambura 27156ad6e9 google-kenzo: new device (MR 3489) 2022-10-04 21:45:09 +02:00
Anton Bambura 1291a002e0 google-kappa: new device (MR 3489) 2022-10-04 21:45:08 +02:00
Anton Bambura de4f3c94a8 google-kakadu: new device (MR 3489) 2022-10-04 21:45:07 +02:00
Anton Bambura 2d59881635 google-damu: new device (MR 3489) 2022-10-04 21:45:06 +02:00
Anton Bambura a21e0c569a google-fennel14: new device (MR 3489) 2022-10-04 21:45:06 +02:00
Anton Bambura d123359627 google-fennel: new device (MR 3489) 2022-10-04 21:45:05 +02:00
Anton Bambura 2fdb7ad710 google-cozmo: new device (MR 3489) 2022-10-04 21:45:04 +02:00
Anton Bambura 7d016111fd google-burnet: new device (MR 3489) 2022-10-04 21:45:03 +02:00
Newbyte ffea64b8b1 main/postmarketos-ui-phosh: remove phoc scaling configuration (MR 3434)
At this point the only application preconfigured to be scaled was GNOME
Maps, which nowdays adapts just fine to narrow screens. Having it scaled
like this by default only degrades the user experience by making UI
elements tiny and hard to interact with.

Closes https://gitlab.com/postmarketOS/pmaports/-/issues/1716
2022-10-03 20:25:20 +02:00
Alexander Martinz 37c7f81f55 community/linux-postmarketos-qcom-sdm845: upgrade to 5.19.12 (MR 3474)
For a merge list, please see the merge commits:
  - 5.19.8  - (https://gitlab.com/sdm845-mainline/linux/-/commit/30c780c930820e977088a5a145e623a8791bbe36)
  - 5.19.9  - (https://gitlab.com/sdm845-mainline/linux/-/commit/203e94fc4750025c6757ea576ae60761622de2dd)
  - 5.19.10 - (https://gitlab.com/sdm845-mainline/linux/-/commit/a88cf36006d765f3ac2c888d0ca87fa864b8caec)
  - 5.19.11 - (https://gitlab.com/sdm845-mainline/linux/-/commit/ade68530f5ea5bbe020451923d8232b87499c6ee)
  - 5.19.12 - (https://gitlab.com/sdm845-mainline/linux/-/commit/c19a1c06f1ff61f5d6971757442acf0736585551)

Change-Id: Ic6b7f59f326516db392c6281d2cee139a9b92794
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>

[ci:skip-build] Already built successfuly on CI in MR
2022-10-03 17:39:15 +02:00
Jakob Hauser f6db790abc main/swclock-offset: change maintainer name (MR 3481) 2022-10-03 17:09:46 +02:00
Newbyte 92c0846074 cross/gcc-armv7: upgrade to 12.2.1_git20220924-r2 2022-10-03 12:09:39 +02:00
Newbyte 97bbb88f39 cross/gcc-armhf: upgrade to 12.2.1_git20220924-r2 2022-10-03 12:06:50 +02:00
Newbyte 07200b060c cross/gcc-aarch64: upgrade to 12.2.1_git20220924-r2 2022-10-03 12:04:30 +02:00
Clayton Craft 32ea00d3f9 temp/evince: drop aport (MR 3484)
Upstream has evince 43 now, which seems to be adapted (tested on the
Librem 5), and the old evince in this package depends on a package that
no longer exists:
        ERROR: unable to select packages:
          so:libgnome-desktop-3.so.19 (no such package):
            required by: evince-9999_git20211009-r2[so:libgnome-desktop-3.so.19]
2022-10-02 10:44:32 +02:00
Newbyte ce46e963cf main/postmarketos-ui-gnome: disable on armhf (MR 3482)
[ci:skip-vercheck]
2022-10-01 22:42:54 +02:00
Newbyte bed0058f46 temp/gcr4: drop (MR 3465)
gcr4 is now in Alpine.
2022-10-01 22:17:47 +02:00
Newbyte 879c1f6900 temp/gjs: drop (MR 3465)
1.74.0 is now in Alpine.
2022-10-01 22:17:41 +02:00
Caleb Connolly bcd0b58cfb community/firmware-oneplus-sdm845: add OnePlus 6T speaker firmware (MR 3462)
The speaker codec driver is currently carried in the sdm845 mainline
kernel fork, we need the firmware to make use of it.
2022-10-01 22:08:46 +02:00
Caleb Connolly d9e75b4d92 community/firmware-oneplus-sdm845: clean up package logic (MR 3462) 2022-10-01 22:08:41 +02:00
knuxify fba7f73f18 device-raspberry-pi4: enable Bluetooth by default (MR 3461) 2022-10-01 22:03:06 +02:00
knuxify 106379972c device-raspberry-pi4: add firmware subpackage (MR 3461) 2022-10-01 22:03:06 +02:00
Vincent Knecht 63a4d7ab0b community/soc-qcom-msm8916: update ALSA UCM files (MR 3473)
- alcatel-idol347: enable headphones jack control
- msm8916-wcd: fix SpeakerHPHLR switch

[ci:skip-build]: built successfully locally, bpo needs bump
2022-10-01 11:54:28 +02:00
Clayton Craft 2447cb00e0 cross/gcc-*: upgrade to 12.2.1-r1 2022-09-30 17:31:59 -07:00
Newbyte f2c7c48e2a main/postmarketos-base: make apk interactive by default (MR 3444)
This would mitigate issues where apk unexpectedly replaces packages
somewhat as this way the user will be able to see precisely what changes
will happen to their system before they are committed. Furthermore, most
users are likely accustomed to package managers like apt, dnf, pacman,
among others that all are interactive by default and as such this would
provide a more familiar experience for them.

This will not affected pre-existing installs, and advanced users who
do not like this behaviour can restore the old one by deleting
/etc/apk/interactive.

[ci:skip-build]: already built successfully in CI
2022-09-28 09:18:55 +02:00
Raymond Hackley 6f074ad61d samsung-*: Add USB ID (MR 3469)
Some devices have 04e8:6860 as their USB ID. Add it to deviceinfo.

[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2022-09-28 09:10:57 +02:00
Bart Ribbers aaa238793d linux-postmarketos-qcom-sdm845: add BTRFS support (MR 3458)
pmbootstrap allows generating btrfs images (install --filesystem btrfs)
but the sdm845 devices don't support booting it without this
2022-09-27 15:26:27 +02:00
Jakob Hauser f5669c1621 main/postmarketos-ui-mate: remove pavucontrol from recommends (MR 3468)
After PulseAudio support for MATE sound was enabled in Alpine Linux,
its interfaces are now available in the native MATE sound settings.
The additional PulseAudio volume control application therefore became
redundant.

[ci:skip-vercheck]
2022-09-27 10:28:19 +02:00
Andreas Kemnade 475b892673 kobo-clara, tolino-shine2hd, tolino-shine3: add mesa-dri-gallium dep (MR 3470)
Mesa behaves again, #1658 is fixed, so lets re-revert MR 3306.
Lets also add the dependency to the other devices using the same
graphics driver.

[ci:skip-build] Already built successfuly on CI in MR
2022-09-27 10:24:48 +02:00
Andreas Kemnade 3dadae21d2 linux-kobo-clara-mainline: upgrade to 5.19.11 (MR 3471)
- silence the wifi a bit, it really provides an enormous amout of spam
- enable pxp mem2mem video converter

[ci:skip-build] Already built successfuly on CI in MR
2022-09-27 10:11:42 +02:00
Oliver Smith 18a08fff5d treewide: adjust deviceinfo to new linting rules (MR 3454)
[ci:ignore-count]
2022-09-27 09:26:53 +02:00
Oliver Smith ff24bce15d CI: deviceinfo: add more strict linting (MR 3454)
pmbootstrap and postmarketos-mkinitfs don't support multiple lines in
these files, and the complexity is not worth implementing there. Let's
keep the format dead-simple and enforce it across all files.

While at it, enforce that comments stat with '# ' and make sure each
line has quotations (we had some without).

Related: discussion in postmarketos-mkinitfs MR 21
2022-09-27 09:26:41 +02:00
Clayton Craft d28d2e4a96 main/postmarketos-mkinitfs: upgrade to 1.5 (MR 3445) 2022-09-27 09:09:15 +02:00
omame 6156f79976 samsung-j6primelte: "Fix" EINVAL on FBIOPUT_VSCREENINFO (MR 3466)
This isn't really a fix, but the device's framebuffer has only one mode and it's enough to get Xorg up and running.

[ci:skip-build]: already built successfully in CI
2022-09-27 08:37:26 +02:00
Vincent Knecht 2f63bc3ca7 msm8939 mainline devices: use soc-qcom-msm8939 package (MR 3463)
Make use of soc-qcom-msm8939 package.
2022-09-26 08:19:56 +02:00
Vincent Knecht 78992d37bb soc-qcom-msm8939: new aport (MR 3463)
Add msm8939 SoC package to be used in addition to soc-qcom-msm8916.

For now it provides a shell script setting FD_MESA_DEBUG=nobin env var
to work-around graphical corruption seen on adreno 405 devices.
2022-09-26 08:19:55 +02:00
M0Rf30 54f97936aa testing/device-xiaomi-vince: mainline kernel support (MR 3446)
Also use correct product name.

[ci:skip-build] Already built successfuly on CI in MR
2022-09-25 17:24:04 +02:00
M0Rf30 faebdf6ba8 testing/firmware-xiaomi-vince: switch sources, restructure (MR 3446)
Fix corrupted adreno blob
2022-09-25 17:23:47 +02:00
M0Rf30 06dd3f2093 testing/linux-postmarketos-qcom-msm8953: upgrade to 5.18.3 (MR 3446)
Add xiaomi-vince support
2022-09-25 17:23:43 +02:00
Sicelo A. Mhlongo f18afd9145 device-nokia-n900: remove duplicates in deviceinfo (MR 3455)
Remove duplicated keyboard/keymap definitions in deviceinfo
2022-09-25 16:05:14 +02:00
David Wronek e2d1aa7bcf cross/gcc-*: upgrade to 12.1.1_git20220630-r6 (MR 3464) 2022-09-25 10:42:33 +02:00
Alexander Martinz 67bfa9a8ff device-shift-axolotl: depend on fwupd and friends (MR 3457)
The SHIFT6mq (axolotl) now supports updating the bootloader via
the new android-boot fwupd plugin.

A big shoutout and heartfelt "Thank You!" to Dylan for working
on this plugin and upstreaming it.

Change-Id: I1d608ce293a152e9354ca117cd370952df3f41ad
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-09-23 12:01:00 +02:00
Luca Weiss a1a2f80a51 CI: require pmb:kconfigcheck-community for community/main devices (MR 3422)
Since nftables check is a part of community check, we can safely remove
the explicit nftables check.

[ci:skip-build]
2022-09-21 22:25:56 +02:00
Luca Weiss 2c58ce8e45 device/{community,main}/*: migrate to pmb:kconfigcheck-community (MR 3422)
Replace usages of pmb:kconfigcheck-* options with
pmb:kconfigcheck-community which will be required for all devices in
community/main category. This ensures more consistent features &
behavior across devices.
2022-09-21 22:25:49 +02:00
Craig Comstock 00f8f73a53 main/gesture: upgrade to 0.7 (MR 3453)
Fix dot gestures on several devices

https://gitlab.com/postmarketOS/pmaports/-/issues/1697
[ci:skip-build]: already built successfully in CI
2022-09-21 22:17:51 +02:00
lucasredelive 8982682ea6 samsung-j8y18lte: new device (Samsung Galaxy J8 (2018)) (MR 3426)
[ci:skip-build]: already built successfully in CI
2022-09-21 20:55:53 +02:00
Luca Weiss 2e4f21edaf main/qt5ct: remove
Package is present in Alpine repos since some time.

Closes #1160
2022-09-21 20:19:43 +02:00
Vincent Knecht 2f0a4245d3 huawei-kiwi: add panel-tianma-nt35596-5p5xa (MR 3451) 2022-09-21 11:30:31 +02:00
Oliver Smith 68eb144ba8 cross/binutils-*: upgrade to 2.39-r2 2022-09-18 21:02:32 +02:00
Bobby The Builder b66e58d4e3 linux-postmarketos-allwinner: upgrade to 5.19.8 (MR 3421)
[ci:skip-build]: already built successfully in CI
2022-09-18 20:53:42 +02:00
Raymond Hackley 3a38bcd09e samsung-fortunaltezt: Set deviceinfo_flash_offset_kernel="0x00008000" (MR 3447)
32-bit devices should use 0x00008000.
2022-09-18 20:26:21 +02:00
Oliver Smith 0a578020c2 main/postmarketos-ui-phosh: don't install gnome-mobile forks (MR 3448)
There is no need to install the experimental GNOME mobile forks when
running Phosh, it will probably just cause instabilities. Let's rather
not do it.
2022-09-18 20:03:40 +02:00
Oliver Smith e4994e5719 main/postmarketos-ui-gnome: don't install gnome-mobile forks (MR 3448)
Don't install the experimental gnome-mobile forks of gnome-shell and
mutter in regular GNOME. These are probably more stable, and most
importantly this prevents accidental uninstallation of gnome-shell
without installing gnome-mobile-shell.

Revert the addition of the gnome-shell dependency to
postmarketos-ui-gnome. This isn't needed anymore and caused further
issues.

Fixes: issue 1701
2022-09-18 20:03:35 +02:00
Oliver Smith 48698459ef main/postmarketos-ui-gnome: add dep on gnome-shell (MR 3443)
Since merging the gnome shell on mobile MR 3404, gnome-shell needs to be
explicitly installed or else it gets removed on upgrade.

[ci:skip-build]: already built successfully in CI
2022-09-16 08:56:05 +02:00
Alexey Minnekhanov dfee25cbf6 xiaomi-platina: add touchscreen module to initfs (MR 3342)
[ci:skip-build] Already built successfuly on CI in MR
2022-09-15 20:19:56 +02:00
Alexey Minnekhanov ff94a38671 xiaomi-lavender: add touchscreen module to initfs (MR 3342) 2022-09-15 20:19:33 +02:00
Alexey Minnekhanov 5a2b291aa4 xiaomi-clover: add touchscreen module to initfs (MR 3342) 2022-09-15 20:19:32 +02:00
Alexey Minnekhanov 4f15437c21 asus-x00td: add touchscreen module to initfs (MR 3342)
And panel-simple is now built-in
2022-09-15 20:19:32 +02:00
Alexey Min 4a685bd493 linux-postmarketos-qcom-sdm660: upgrade to 5.19 (MR 3342)
Upgrade to fresh Linux release.

Enable more features in kernel from pmbootstrap kconfig check:
anbox, containers, iwd, nftables, zram.

Disable CONFIG_REGULATOR_DEBUG to reduce dmesg spam.

DRM and PANEL_SIMPLE are now built-in (DRM_MSM is still "m").

Switch to framebuffer from SIMPLEFB to tinydrm (SIMPLEDRM=y).

Switch APKBUILD to use "make zinstall" approach.

(Device packages might need small adjustments to initfs modules list.)
2022-09-15 20:19:32 +02:00
Newbyte f5937947aa temp/upower: drop (MR 3440)
The known affected devices have had the battery display issues resolved.
xiaomi-beryllium and shift-axolotl were fixed in-kernel by Linux for
sdm845 version 5.19.7, and samsung-skomer works fine after backporting
the upstream Upower fix for the issue:
https://gitlab.freedesktop.org/upower/upower/-/merge_requests/170

The sdm845 devices also work fine with just the Upower fix for what it's
worth. The kernel fix is redundant.
2022-09-15 19:45:52 +02:00
Anjandev Momi d25d6e6088 main/postmarketos-ui-sxmo-de-dwm: upgrade to 1.11.1 (MR 3398)
[ci:skip-build] already built successfully in CI
2022-09-15 10:32:46 -07:00
Anjandev Momi 1c3b44199e main/sxmo-common: upgrade to 1.11.1 (MR 3398) 2022-09-15 10:32:40 -07:00
Anjandev Momi 430612a48f main/postmarketos-ui-sxmo-de-sway: upgrade to 1.11.1 (MR 3398) 2022-09-15 10:32:26 -07:00
Newbyte 3d28282ac7 temp/calamares-extensions: drop (MR 3439)
Patch has been moved to Alpine:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/38950
2022-09-15 11:27:02 +02:00
Oliver Smith dd32a6697b main/postmarketos-welcome: upgrade to 0.7.0 (MR 3441)
[ci:skip-build]: already built successfully in CI
2022-09-15 09:35:27 +02:00
Newbyte b663e55b3a main/postmarketos-ui-gnome-mobile: new aport (MR 3404)
[ci:skip-build]: already built successfully in CI
2022-09-15 09:30:12 +02:00
Caleb Connolly 47e8aa8160 temp/gnome-shell-mobile: new aport (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly 088b06cfb8 temp/mutter-mobile: new aport (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly bdb0c4d4c6 temp/gcr4: new aport (for gnome-mobile, will be moved to alpine) (MR 3404) 2022-09-15 09:30:00 +02:00
Caleb Connolly c5051fecfc temp/gjs: temporarily fork to upgrade for gnome-mobile (MR 3404) 2022-09-15 09:29:55 +02:00
Oliver Smith 2176095404 cross/grub-efi-x86: upgrade to 2.06-r6 2022-09-15 09:15:43 +02:00
Oliver Smith 70001d44a6 cross/busybox-static-*: upgrade to 1.35.0-25 2022-09-15 09:15:38 +02:00
Craig Comstock 911065a682 motorola-surnia: change to mainline kernel (MR 3329)
[ci:skip-build] Already built successfuly on CI in MR
2022-09-14 22:56:47 +02:00
Oliver Smith b45db48e69 main/postmarketos-ui-phosh: update ff in favorites (MR 3420)
Adjust to change in Alpine, Firefox ESR is now launched via
firefox-esr.desktop instead of org.mozilla.firefox.desktop.
2022-09-14 09:51:09 +02:00
Newbyte 6c0cfb081b main/postmarketos-ui-phosh: adopt (MR 3435)
Bart has confirmed he's fine with this.
2022-09-14 09:43:57 +02:00
Bart Ribbers 8ead04ba61 main/postmarketos-ui-glacier: drop (MR 3433)
It's broken and I currently don't have any interest in fixing it or
maintaining it in general. If somebody wants to package it later they
can always restore it
2022-09-14 09:32:11 +02:00
Elagost 8ae2fccd41 linux-postmarketos-allwinner: add exfat module to armv7 config (MR 3437)
[ci:skip-build] Already built fine on CI in MR
2022-09-13 22:10:00 +03:00
Elagost ac881faa86 linux-postmarketos-allwinner: add exfat module (MR 3436)
[ci:skip-build] Already built fine on CI once
2022-09-13 18:39:58 +03:00
Oliver Smith 1ff0cac815 main/gcc{4,6}: remove dependency on isl (MR 3432)
Previously only cross/gcc{4,6}-* packages were adjusted in MR 3419, but
these packages need to be adjusted as well.

Fix for error shown in upstream_compat check:
  Increase 'gcc6' pkgrel (10 -> 11), missing depend(s): isl
  Increase 'gcc4' pkgrel (5 -> 6), missing depend(s): isl

Related: pmbootstrap issue  2167

[ci:skip-build] Already built successfully once
2022-09-13 17:20:20 +03:00
Phil Smith fac1dc0a64 main/postmarketos-ui-phosh: Fix firefox-esr mime (MR 3428)
Firefox packaging changed upstream, renaming the desktop files.  This
caused the mime applications to be stale, so update those.

See also
  https://gitlab.alpinelinux.org/alpine/aports/-/issues/13983
[ci:skip-build]: already built successfully in CI
2022-09-13 09:33:12 +02:00
Newbyte 45fc67abeb samsung-p4note: enable automatic kernel upgrades (MR 3425) 2022-09-13 09:17:36 +02:00
Sicelo A. Mhlongo 8d411c7c4d temp/xkeyboard-config: drop rx-51 patches (MR 3431)
Remove rx-51 (Nokia N900) modifications from package.

Related: #1521
[ci:skip-build]: already built successfully in CI
2022-09-13 09:14:54 +02:00
Sicelo A. Mhlongo 5da6060cd9 device-nokia-n900: Add x11 keymap (MR 3430)
Add rx-51 x11 keymap to device package in response to #1521

[ci:skip-build]: already built successfully in CI
2022-09-13 09:10:47 +02:00
Arnavion 2c74889256 main/postmarketos-hidden-desktop-entries: update firefox(-esr) safe-mode filename (MR 3418)
Ref:

- https://gitlab.alpinelinux.org/alpine/aports/-/commit/614929078261d2c438329c786831e0308baf5160

- https://gitlab.alpinelinux.org/alpine/aports/-/commit/525736254c52aa7dc0c9c7d7fdfef94dae3eba1c
2022-09-13 08:55:19 +02:00
Bart Ribbers b79dd34e1d main/postmarketos-ui-plasma-mobile: add dependency on PipeWire to fix window switcher previews (MR 3424) 2022-09-12 11:36:05 +02:00
Bart Ribbers b23d61b547 main/postmarketos-ui-plasma-mobile: add font-noto-extra to _pmb_recommends (MR 3423)
The "Light" weight is used by the keyboard and some applications

[ci:skip-vercheck]
2022-09-12 10:40:43 +02:00
Newbyte d8cb4fea55 postmarketos-ui-phosh: drop firefox subpackage (MR 3414)
The sole purpose of this subpackage was to work around that Firefox's
.desktop file did not match the GTK app ID. This has been fixed as of
the commit linked below, so drop the subpackage.

See https://gitlab.alpinelinux.org/alpine/aports/-/commit/525736254c52aa7dc0c9c7d7fdfef94dae3eba1c
2022-09-11 18:13:13 +02:00
Fiona Klute 72784fcf6f main/mobile-config-firefox: Fix firefox-esr >= 102.2.0-r1 (MR 3417)
The firefox-esr package in versions >= 102.2.0-r1 installs to
/usr/lib/firefox-esr instead of /usr/lib/firefox, adjust FIREFOX_DIR
to match. Install for both firefox-esr and firefox now.

[ci:skip-build]: already built successfully in CI
2022-09-11 18:00:00 +02:00
Oliver Smith f5fcfe6e56 cross/gcc{4,6}: remove dep on isl package (MR 3419)
Adjust to removal of isl in Alpine, see pmbootstrap issue 2167.
Packages generated with pmbootstrap MR 2203.
2022-09-11 16:59:48 +02:00
Luca Weiss 64d8dc390e community/linux-postmarketos-qcom-sm6350: adjust config (MR 3416)
Switch to minimal config that I've been using for development for the
last months, with some minor modifications. In addition to that enable
all the kconfig options that will be a part of the new
pmb:kconfigcheck-community (anbox/waydroid + iwd + nftables + containers
+ zram + netboot).

Note by ollieparanoid:
Re-applied it after I just reverted it. Now realized that I didn't need
to revert this in the first place, this is and aarch64 package and the
cross compilers (x86_64 packages) needed to be published. Anyway, the
gcc mess is mostly resolved now, see issue 2167.

[ci:skip-build] Already built successfuly on CI in MR
2022-09-11 16:43:38 +02:00
Oliver Smith 16d4b59ab8 Revert "community/linux-postmarketos-qcom-sm6350: adjust config (MR 3416)"
Temporarily revert this, so bpo can first build and publish all gcc
cross packages. The build for this linux package currently failed - I
could also set it back to queued and have it build, but that would delay
the publish of the gcc-aarch64 package until the kernel is built.

This reverts commit 979cc0bfb6.
2022-09-11 16:27:19 +02:00
Oliver Smith cd43a0b58e cross/gcc-*: upgrade to 12.1.1_git20220630-r5
Removed isl as described in pmaports issue 2167. Verified locally that
gcc-aarch64 builds. Tried to test building packages with it, but wasn't
possible with the local build due to a bug, I'll create an issue and
link it in pmaports issue 2167. Pushing this now as it's a critical fix,
should work in theory as soon as the binary packages are built on bpo,
and right now it's broken anyway.
2022-09-11 15:29:31 +02:00
Luca Weiss 979cc0bfb6 community/linux-postmarketos-qcom-sm6350: adjust config (MR 3416)
Switch to minimal config that I've been using for development for the
last months, with some minor modifications. In addition to that enable
all the kconfig options that will be a part of the new
pmb:kconfigcheck-community (anbox/waydroid + iwd + nftables + containers
+ zram + netboot).

[ci:skip-build] Already built successfuly on CI in MR
2022-09-10 15:01:25 +02:00
Svyatoslav Ryhel 7adba98f70 linux-postmarketos-grate: upgrade to 5.19.0_rc8 (MR 3345)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2022-09-09 09:56:44 +02:00
Svyatoslav Ryhel 58c0cd2a20 firmware-asus-transformer: add all known Asus Transformers on Nvidia Tegra (MR 3345)
Add support for next devices:
- Asus Eee Pad Transformer TF101 and TF101G
- Asus Eee Pad Slider SL101
- Asus Transformer Prime TF201
- Asus Transformer Pad TF300T/TF300TG/TF300TL
- Asus VivoTab RT TF600T (Windows RT based)
- Asus Transformer Infinity TF700T
- Asus Transformer AiO P1801-T
- Asus Transformer PAD TF701T
- Pegatron Chagall based devices

Package has no dependencies.

Signed-off-by: Anton Bambura <jenneron@protonmail.com>
Signed-off-by: Maxim Schwalm <maxim.schwalm@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2022-09-09 09:56:44 +02:00
Newbyte 13659ae78d temp/gtk4.0: drop (MR 3413)
Bug should've been fixed in GTK 4.8.0, which has been released now.

Alpine MR: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/37983
2022-09-08 19:06:39 +02:00
Raymond Hackley 829413ef71 main/postmarketos-base-ui-pulseaudio: depend on pulseaudio-utils (MR 3411)
start-pulseaudio-x11 uses pactl, which is not installed by default.
2022-09-08 13:56:06 +02:00
Clayton Craft 4a7e47013e main/postmarketos-base-ui: simplify pulseaudio config (MR 3412)
config scripts in /etc/pulse/default.pa.d are loaded automatically by
default.pa
2022-09-08 09:15:22 +02:00
Luca Weiss 566b8de98a device/*: Remove pmb:kconfigcheck-apparmor (MR 3410)
Remove as we are removing apparmor check from pmbootstrap

[ci:skip-vercheck] No rebuild necessary
[ci:skip-build]: already built successfully / also not really needed
2022-09-08 08:31:35 +02:00
Federico Amedeo Izzo 5d2300793d linux-postmarketos-mtk-mt8183: enable F2FS filesystem (MR 3403)
Enable F2FS Filesystem as builtin module with default kconfig options selected.

[ci:skip-build] Already built successfuly on CI in MR
2022-09-07 21:31:40 +02:00
Sergey Lisov 4867a3f4e3 samsung-a6lte: new device (Samsung Galaxy A6 2018) (MR 3393)
[ci:skip-build] Already built successfuly on CI in MR
2022-09-07 08:12:14 +02:00
Clayton CraftandOliver Smith f9769f26fd temp/upower: fork from Alpine, downgrade to 0.99.20 (MR 3408)
A lame workaround for this[1] until something better comes along. Not
having a functional battery gauge on a mobile device is kind of painful.

1. pmaports issue 1677

Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
Tested-by: Drew DeVault <sir@cmpwn.com>

[ci:skip-build] already built successfully in CI
2022-09-06 16:36:53 -07:00
Alexander Martinz 13ec74abfb community/linux-postmarketos-qcom-sdm845: upgrade to 5.19.7 (MR 3394)
For a merge list, please see the merge commits:
  - 5.19.1 - (https://gitlab.com/sdm845-mainline/linux/-/commit/447097cc4bf3d9d2569310395e49ecd44705aee2)
  - 5.19.2 - (https://gitlab.com/sdm845-mainline/linux/-/commit/ffe84a5d134b12d2cdf48a83c129aa45e939d5f3)
  - 5.19.3 - (https://gitlab.com/sdm845-mainline/linux/-/commit/421c4a4220595d0e4748ceb3bcfd651b559adee3)
  - 5.19.4 - (https://gitlab.com/sdm845-mainline/linux/-/commit/58306b544f7daae56672fc4ad3859c3cca9bea6b)
  - 5.19.5 - (https://gitlab.com/sdm845-mainline/linux/-/commit/3985649cd07e2de7a51ae811162ecf7880b154a7)
  - 5.19.6 - (https://gitlab.com/sdm845-mainline/linux/-/commit/ce51b0645946ee419d2153eba5538bb6876387a0)
  - 5.19.7 - (https://gitlab.com/sdm845-mainline/linux/-/commit/3c3bb6290821d2feb6adb017227dde0ce773bd16)

Change-Id: I43256c81b91fe7aa69bad0f27503888120ac2973
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-09-06 14:09:40 +02:00
Clayton Craft bb129dd247 linux-purism-librem5: upgrade to 5.18.11 (MR 3407)
[ci:skip-build]: already built successfully in CI
2022-09-06 08:45:23 +02:00
Newbyte 759ae7dbee samsung-p4note: fix kernel partition name (MR 3397)
Without this, pmbootstrap flasher flash_kernel fails as it tries to
flash the kernel to a partition called KERNEL, which does not
exist.
2022-09-05 11:25:16 +02:00
Bart Ribbers a90ecd5929 main/postmarketos-ui-plasma-mobile: add callaudiod to properly route audio (MR 3406) 2022-09-05 11:18:11 +02:00
Song Fuchang 06e79fb51a xiaomi-polaris: Make touchscreen work during boot (MR 3399) 2022-09-05 08:51:06 +02:00
Dylan Van Assche 3ec4e103fa community/linux-pine64-pinephonepro: enable SPI flash (MR 3401)
SPI flash for Tow-Boot was enabled a long time ago, but the config was missing in pmaports.

Enables https://gitlab.com/pine64-org/linux/-/merge_requests/29
[ci:skip-build]: already built successfully in CI
2022-09-05 08:47:34 +02:00
Newbyte 6149a7d418 main/postmarketos-ui-phosh: add phosh-mobile-settings to recommends (MR 3396)
[ci:skip-vercheck]: Changing _pmb_recommends does not affect the
resulting package.
2022-09-04 16:02:14 +00:00
Oliver Smith 76afb0408c cross/busybox-static-*: upgrade to 1.35.0-r24 2022-09-04 13:38:42 +02:00
Dylan Van Assche 8c291862b6 main/postmarketos-base: add replace for busybox-openrc (MR 3400)
Alpine refactored the Busybox APKBUILD which resulted into a few
renamings like busybox-initscripts to busybox-openrc.

See https://gitlab.alpinelinux.org/alpine/aports/-/commit/8b30ff10ab691ce8380423c551dd9c327a5a1f9a
2022-09-04 12:58:15 +02:00
Dylan Van Assche 7d72743b1f device-odroid-hc2: switch to linux-edge (MR 3378)
ODROID HC2 is based upon the Samsung Exynos 5422 and can run full
mainline. Switch to linux-edge from Alpine to enable this and drop
the close-to-mainline fork for this device. The close-to-mainline
fork was already linux-edge for a while but with a separate KConfig.
These KConfig changes are now integrated in linux-edge of Alpine.

U-boot script was updated to handle vmlinuz-edge as well since
Alpine's linux-edge does not generate a vmlinuz file, but vmlinuz-edge.
Probably to allow installing linux-lts as well.

initcall_blacklist=exynos_drm_init was added to the kernel cmdline
because upstream wants to set CONFIG_DRM_EXYNOS=y instead of module.
The DRM subsystem of Exynos5 in the kernel seems to be broken for this
device. There's also no use for it since this device does not have video
out. See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/38094
2022-09-02 12:55:49 +02:00
Oliver Smith fb3b854976 linux-postmarketos-exynos4: disable HDMI for Midas (MR 3395)
Disable HDMI as workaround, as it seems to be buggy when HDMI is
unplugged. It's apparently in DRM_MODE_CONNECTED state, but without size
and with no modes. According to Guido from Phosh this is a bug and
should be fixed in the kernel. By disabling this until it is fixed, we
get Phosh working again.

Related: https://gitlab.gnome.org/World/Phosh/phosh/-/issues/828
2022-09-01 23:21:36 +02:00
Jonas Fentker 48cad306b9 device-pine64-pinephone: move flashlight rules to main pkg (MR 3322) 2022-09-01 16:40:39 +02:00
Duje Mihanović 194fdc32a9 samsung-coreprimevelte: enable nonfree firmware (MR 3352) 2022-09-01 08:41:26 +02:00
Duje Mihanović fce80a1777 firmware-samsung-xcover3lte: rename to *-pxa1908 (MR 3352)
This is to emphasize the fact that this firmware package will work essentially
unmodified on the samsung-coreprimevelte and other Samsung PXA1908 phones as
well.
2022-09-01 08:41:23 +02:00
Duje Mihanović 74b5c32318 samsung-coreprimevelte: fix sudden reboots (MR 3352) 2022-09-01 08:41:23 +02:00
Duje Mihanović 1810b0ea99 samsung-coreprimevelte: use Samsung sparse format (MR 3352) 2022-09-01 08:41:23 +02:00
Oliver Smith 2795c52e24 cross/busybox-static-*: upgrade to 1.35.0-r23 2022-09-01 08:28:15 +02:00
Martijn Braam 751f109220 main/postmarketos-welcome: upgrade to 0.6.0 (MR 3392) 2022-08-31 16:57:43 +02:00
map220v 0e4c72fcfd samsung-a72q: new device (MR 3390)
[ci:skip-build]: already built successfully in CI
2022-08-29 09:32:28 +02:00
map220v 43f8e10919 alsa-ucm-conf-samsung-sm7125: add support for samsung-a72q (MR 3390) 2022-08-29 09:32:11 +02:00
bonfire_ d5d54b2b50 google-krane: new device (MR 3387)
- remove kernel_rev4/5
- various notes from @jenneron
- update modules initfs
- fix tab linter; remove linux-postmarketos-mtk-mt8183
- fixing tabs grrr and skuX values
- make deviceinfo_external_storage=true
- add hid-multitouch

[ci:skip-build]: already built successfully in CI
2022-08-29 09:17:26 +02:00
Bart Ribbers 4d8d989202 main/postmarketos-ui-plasma-desktop: add maliit-keyboard to _pmb_recommends (MR 3388)
Although qt5-qtvirtualkeyboard is used by SDDM, in a Plasma session
itself maliit-keyboard is used instead

[ci:skip-build]: already built successfully in CI
2022-08-28 23:13:20 +02:00
Newbyte 3012079396 linux-postmarketos-exynos4: fix build with GCC 12 (MR 3389)
[ci:skip-build]: already built successfully in CI
2022-08-28 23:07:02 +02:00
Martijn Braam 798cef69b5 main/powersupply: drop aport (MR 3383)
This package is now in Alpine
2022-08-25 13:10:11 +02:00
Luca Weiss 5e17ea3aed fairphone-fp4: move to community (MR 3364)
The device fulfils the requirements for community category, and I plan
to maintain and develop this device further going forward. Move it!

[ci:skip-vercheck]: linux pkg was moved
[ci:skip-build]: already built successfully in CI
2022-08-25 09:28:58 +02:00
Mighty 9ec0be94e0 linux-postmarketos-omap: new aport (MR 3107)
[ci:skip-build]: already built successfully in CI
2022-08-25 09:25:18 +02:00
Jianhua Lu 986fd72cd7 firmware-xiaomi-elish: add touchscreen firmware (MR 3376)
[ci:skip-build]: already built successfully in CI
2022-08-25 09:17:00 +02:00
Jianhua Lu d437ffef29 device-xiaomi-elish: enable touchscreen (MR 3376) 2022-08-25 09:16:53 +02:00
Jianhua Lu 43ec5f81d8 linux-postmarketos-qcom-sm8250: upgrade to 5.19.0 (MR 3376) 2022-08-25 09:16:48 +02:00
Leandro Friedrich df62747456 samsung-a52q: new device (MR 3379) 2022-08-24 18:48:18 +02:00
Leandro Friedrich ea62ccf0d4 alsa-ucm-conf-samsung-sm7125: new aport (MR 3379) 2022-08-24 18:48:17 +02:00
Leandro Friedrich 0eabfc2d53 soc-qcom-sm7125: new aport (MR 3379) 2022-08-24 18:48:16 +02:00
Leandro Friedrich 59454386ea linux-postmarketos-qcom-sm7125: new aport (MR 3379) 2022-08-24 18:48:14 +02:00
Oliver Smith 452f12bc2c cross/binutils-*: upgrade to 2.39-r1 (MR 3381)
Generated with modernized aportgen binutils code in
pmbootstrap MR 2199.
2022-08-24 13:59:15 +02:00
Roberto MF 15f87fa497 device-lg-hammerhead: remove device-specific weston config (MR 3380)
Weston workaround was cleaned up in 6e75a19cc1
2022-08-24 09:02:07 +02:00
TAKIZAWA Fumiya 86900a49b7 amazon-karnak: new device (MR 3375)
[ci:skip-build]: already built successfully in CI
2022-08-24 08:50:04 +02:00
Andreas Kemnade 2a963f35f7 device-kobo-clara: remove mesa-dri-gallium dep (MR 3371)
Having mesa-dri-gallium installed causes Xorg to crash. See #1658.
Furthermore, display works without at least with near-mainline kernel,
tested with osk-sdl and xfce4.
So if specific applications depend on it, it should be added as a
dependency there.

This reverts MR 3306

This is just a hotfix, Xorg/mesa should be tamed to not crash here
but analyzing that costs time.
2022-08-22 09:52:05 +02:00
Newbyte 6651bd3ef6 cubietech-cubieboard: use initramfs as initrd name (MR 3370)
boot-deploy renames initramfs-edge to initramfs.

Similar to https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2521
2022-08-22 09:47:42 +02:00
Bobby The Builder d93b955b83 main/linux-postmarketos-allwinner: upgrade to 5.19.2 (MR 3368)
[ci:skip-build] Already built successfuly on CI in MR
2022-08-20 19:54:03 -04:00
David Wronek 2e11baa90d main/postmarketos-base: Add alpine-release to replaces (MR 3372)
Upstream changed the alpine-base package. Conflicting files are now in
alpine-release instead of alpine-base.
2022-08-20 21:47:39 +02:00
Newbyte 8bb44eb40b linux-postmarketos-stericsson: migrate kconfig (MR 3369)
This was forgotten during the latest update.

[ci:skip-build] Already built once
2022-08-20 18:31:05 +03:00
Andreas Kemnade 04208c6461 device/testing/device-{tolino,kobo}*: use common waveform extractor (MR 3099)
There is no need to duplicate things over and over again.
Also load the waveform in initramfs before loading display
modules. That is early enough to have a working display in
initramfs.
2022-08-19 18:52:44 -04:00
Andreas Kemnade 18efe7b80e kobo-epdc-extractor: extractor for hidden waveform partitions (MR 3099)
Extracts waveform into a file. Waveform seems to be specific to a
display batch.
2022-08-19 18:52:40 -04:00
Dylan Van Assche 3942f8b1b6 soc-qcom-sdm845: set MAC address on boot (MR 3360)
SDM845 devices running mainline lack a valid MAC address, and
fallback to a random one on each boot. This makes DHCP IPs vary
on each boot and breaks Bluetooth BNEP mode since the kernel enforces
that a valid MAC address is used when Bluetooth BNEP mode is activated.

Add a udev rule to trigger a script when the WLAN or Bluetooth interface
appear to set the MAC address by reading it from the persist partition
for the WLAN MAC address and increment it for generating a Bluetooth MAC
address. This approach seems to be common on some downstream devices
such as the Oneplus 6.

[ci:skip-build]: already built successfully in CI
2022-08-19 09:36:15 +02:00
Dylan Van Assche 2bb6c15cbd main: bootmac: new pmaport (MR 3360)
Bootmac configures the MAC addresses of WLAN and Bluetooth interfaces at boot.
Bootmac can be invoked in various ways at boot, but currently only udev rules are tested.
Bootmac generates MAC addresses from the `serialno` provided by Android bootloaders
through /proc/cmdline or from /etc/machine-id. The Organizationally Unique Identifier (OUI)
is retrieved from a lookup database macdb by matching deviceinfo_manufacturer
from /etc/deviceinfo with the entries in the database.

See https://gitlab.com/postmarketOS/bootmac
2022-08-19 09:35:45 +02:00
Johannes Marbach ce053e7179 main/unl0kr: upgrade to 0.2.0_git20220817 (MR 3366) 2022-08-18 12:31:45 +03:00
Anri Dellal 3e677782ab main/postmarketos-ui-weston: hide for downstream kernels (MR 3367)
Weston doesn't have fbdev backend anymore,
so hide it in pmbootstrap init to avoid
confusion.
2022-08-18 12:14:56 +03:00
Luca Weiss 13419f0561 testing/device-fairphone-fp4: remove i2c-gpio from initfs again (MR 3363)
Now with GPI DMA fixed this is not necessary anymore.
[ci:skip-build]: already built successfully in CI
2022-08-17 09:16:08 +02:00
Luca Weiss c86c1d9e93 testing/linux-postmarketos-qcom-sm6350: upgrade to 6.0.0_rc1 (MR 3363)
GPI_DMA now works so we can use GENI I2C and remove bitbang i2c-gpio.
PM8008 driver from mailing list is imported and configured. CCI (camera
i2c bus) is configured plus CAMCC dependency. And some smaller changes.
2022-08-17 09:15:24 +02:00
Bobby The Builder a34fbd3571 pine64-pinephonepro: add simple-card.conf symlink (MR 3356)
Add a workaround to fix loading the alsa ucm config.

Related: https://github.com/Tow-Boot/Tow-Boot/issues/171
[ci:skip-build]: already built successfully in CI
2022-08-17 09:09:25 +02:00
ErenTheTitan ca4860c34b google-juniper: add sound support (MR 3348) 2022-08-16 11:00:07 -04:00
ErenTheTitan 49f7b70d9c temp/alsa-ucm-conf-google-kukui: new aport (MR 3348) 2022-08-16 11:00:07 -04:00
Newbyte 3a00c8d5bc linux-postmarketos-stericsson: fix project link and pkgdesc (MR 3354)
We are just building upstream Linux with minor patches and no longer
using the linked GitHub repo, so let's fix this to avoid confusion.

[ci:skip-build]: already built successfully in CI
2022-08-16 08:46:08 +02:00
Oliver Smith 00828c40cb qemu-amd64,aarch64: remove edge4virt kernel
Follow removal of linux-edge4virt in Alpine:
https://gitlab.alpinelinux.org/alpine/aports/-/commit/1a838bdeb6bc13e29816164b2534c49e84b090df

Fix for upstream compat failure:
  Increase 'device-qemu-amd64' pkgrel (0 -> 1), missing depend(s): linux-edge4virt

[ci:skip-build]: already built successfully in CI
2022-08-16 08:40:29 +02:00
Dylan Van Assche 133cbd3116 soc-qcom-sdm845: drop upower subpackage (MR 3361)
UPower config to shut down device on low battery
is usefull for all SDM845 devices.

[ci:skip-build]: built successfully in CI
2022-08-15 18:46:53 +02:00
Oliver Smith 8cd0101304 Revert "cross/binutils-*: upgrade to 2.39-r1"
This reverts commit 0ce9fdf8d6.

These cross/binutils packages are generated with pmbootstrap aportgen. I
push them directly to master without build testing because so far they
always built fine... but this time it failed. Revert for now.

Related: https://builds.sr.ht/~postmarketos/job/823964
2022-08-15 18:42:54 +02:00
Oliver Smith 0ce9fdf8d6 cross/binutils-*: upgrade to 2.39-r1 2022-08-15 18:16:46 +02:00
Bobby The Builder b341018d89 main/posmarketos-mkinitfs: add -f parameter to parted (MR 3355)
[ci:skip-build]: already built successfully in CI
2022-08-15 17:42:39 +02:00
Jean Lucas 2b37392456 linux-postmartketos-allwinner: add PinePhone keyboard battery driver (MR 3358)
IP5XXX is needed to be able to read PinePhone battery levels. Extra
configs were automatically added by pmbootstrap.

Signed-off-by: Jean Lucas <jean@4ray.co>
2022-08-14 22:26:11 -04:00
Bobby The Builder 0c0b623f87 cross/gcc-*: upgrade to 12.1.1_git20220630 (MR 3353) 2022-08-13 11:17:36 -04:00
Dang Huynh 84b6d7a0ec linux-nokia-n900: upgrade to 5.18.16 (MR 3350)
Signed-off-by: Dang Huynh <danct12@disroot.org>

[ci:skip-build] Already built successfuly on CI in MR
2022-08-10 16:27:53 -04:00
Dylan Van Assche 6f6d10e499 linux-postmarketos-qcom-sdm845: sync config from sdm845.config (MR 3347)
Squash of
- linux-postmarketos-qcom-sdm845: enable LED_TRIGGER_PATTERN as builtin
- linux-postmarketos-qcom-sdm845: switch BT_RFCOMM to module
- linux-postmarketos-qcom-sdm845: switch BT_BNEP to module

LED_TRIGGER_PATTERN is necessary for feedbackd to function correctly.
However, it doesn't get enabled by default when build as module,
build as built-in to avoid this problem so the notification LED
blinks correctly. This works around the problem that LED_TRIGGER_PATTERN
is not probed automatically when the Qualcomm LPG driver is used for SDM845 devices. See https://gitlab.com/sdm845-mainline/linux/-/merge_requests/34

CONFIG_BT_RFCOMM should always be build as a module otherwise it may never
be initialized at boot. Without this module, BlueZ will not enable
profiles depending on RFCOMM such as HFP. RFCOMM support as builtin may
work if the Bluetooth driver is builtin (which is not the case here), but I haven't verified that. See https://gitlab.com/sdm845-mainline/linux/-/merge_requests/38

CONFIG_BT_BNEP should always be build as a module otherwise it may never
be initialized at boot. Without this module, BlueZ will not start up its
networking plugin to provide Bluetooth PAN support. BNEP support as
builtin may work if the Bluetooth driver is builtin (which is not the case here), but I haven't verified that. See https://gitlab.com/sdm845-mainline/linux/-/merge_requests/38

[ci:skip-build]
2022-08-09 17:05:49 +03:00
Molly Sophia 08446405c5 xiaomi-polaris: new device (MR 3327) 2022-08-08 17:16:43 +01:00
Caleb Connolly 81b0abbc98 community/linux-postmarketos-qcom-sdm845: upgrade to 5.19.0 (MR 3334)
[ci:skip-build] already built in CI
2022-08-06 23:52:02 +01:00
Caleb Connolly 7facf445fe community/linux-postmarketos-qcom-sdm845: remove unnecessary variable (MR 3334) 2022-08-06 23:51:33 +01:00
Jami Kettunen 8f1e9d1940 oneplus-dumpling: add support for alpine-edge kernel (MR 3336)
Adds Alpine's linux-edge as a kernel for the OnePlus 5T.

[ci:skip-build]
2022-08-06 16:42:52 +01:00
Jami Kettunen 7e43e9aba7 oneplus-cheeseburger: add support for alpine-edge kernel (MR 3336)
Adds Alpine's linux-edge as a kernel for the OnePlus 5.
2022-08-06 16:42:34 +01:00
Jami Kettunen 6f556380df oneplus-dumpling: move downstream pieces to unmaintained (MR 3336)
It can still be chosen as 'oneplus-dumpling-downstream' in
pmbootstrap init.
2022-08-06 16:42:34 +01:00
Jami Kettunen e1209e44ff oneplus-cheeseburger: move downstream pieces to unmaintained (MR 3336)
It can still be chosen as 'oneplus-cheeseburger-downstream' in
pmbootstrap init.
2022-08-06 16:42:34 +01:00
Jami Kettunen b1914ddb10 linux-oneplus-msm8998: move to unmaintained (MR 3336)
The downstream kernel has barely any functionality without libhybris
(which is not coming back to pmOS) so move everything related to the
OnePlus 5/5T downstream ports to downstream since a working mainline
port is much more feature rich.
2022-08-06 16:42:34 +01:00
Luca Weiss 113a5baa3e fairphone-fp4: add support for using super partition (MR 3344)
Set the necessary flag in deviceinfo so a user can use a logical
partition that was flashed using fastbootd.

$ fastboot create-logical-partition postmarketOS 1000000000
$ pmbootstrap flasher flash_rootfs --partition postmarketOS

[ci:skip-build]: already built successfully in CI
2022-08-05 09:14:51 +02:00
Oliver Smith d34f9020da gcc4, gcc6: rebuild against latest isl (MR 3343)
Bump the pkgrel of gcc4 and gcc6, and regenerate the cross/* versions
with "pmbootstrap aportgen gcc6-armv7" etc.

Should fix these errors:
  Error loading shared library libisl.so.22: No such file or directory (needed by /usr/gcc6/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/cc1)
  Error relocating /usr/gcc6/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/cc1: isl_union_map_free: symbol not found
  Error relocating /usr/gcc6/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/cc1: isl_map_from_pw_aff: symbol not found
  Error relocating /usr/gcc6/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/cc1: isl_schedule_from_domain: symbol not found
  ...

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/54749a52225575a91f01d04f8d024b4ee853cfb6
[ci:skip-build]: already built successfully in CI
2022-08-05 09:10:00 +02:00
Oliver Smith 2280958b5e cross/busybox-static-*: upgrade to 1.35.0-r22 2022-08-04 09:03:17 +02:00
Elliot Huang 9b819e65bb google-juniper: new device (MR 3332) 2022-08-04 07:31:12 +03:00
Elliot Huang 50c5d50d75 linux-postmarketos-mtk-mt8183: new aport (MR 3332) 2022-08-04 07:31:09 +03:00
Jami Kettunen 2670b2c580 volla-mimameid: new device (Volla Phone 22) (MR 3340) 2022-08-03 19:27:44 -04:00
Luca Weiss 4c14014faa pine64-dontbeevil: remove sensorfw/primaryuse.conf (MR 3338)
This conflicts with sensorfw config provided in Alpine. Both have the
same content so remove the one from device package.
2022-08-03 20:38:13 +02:00
Luca Weiss 2d9018806e pine64-pinephone: remove sensorfw/primaryuse.conf (MR 3338)
This conflicts with sensorfw config provided in Alpine. Both have the
same content so remove the one from device package.
2022-08-03 20:38:13 +02:00
Luca Weiss 5beb88422b temp/evince: remove libexecinfo-dev from makedepends (MR 3339)
See https://gitlab.alpinelinux.org/alpine/aports/-/commit/50795a14dee639ce2dcc836e2b2baca9bad4a1b1
2022-08-03 15:40:35 +02:00
Luca Weiss c6818f1e78 temp/ofono: remove libexecinfo-dev from makedepends (MR 3339)
See https://gitlab.alpinelinux.org/alpine/aports/-/commit/50795a14dee639ce2dcc836e2b2baca9bad4a1b1
2022-08-03 15:38:38 +02:00
Oliver Smith 11682fb0ab gitlab-ci.yml: set timeout for build to 10h (MR 3337)
A common issue is that building kernels takes longer than the default of
1h, and then MR authors need to adjust the timeout in their pmaports
fork and run it again. By setting this option this is hopefully no
longer the case.

I set it to 10h because that's what we currently have set in the
postmarketOS gitlab configuration and it would allow building MRs for
service packs with multiple kernels.

pmbootstrap has logic built in to detect stale builds - by default it
will stop a build if there was no output for 15 minutes. So having a
large timeout shouldn't be a problem.
2022-08-03 09:24:35 -04:00
Martin Lillepuu 9de9244812 testing/device-oneplus-oneplus3t: add oneplus3t with s6e3fa5 panel (MR 3330)
Add support for multiple panels using kernel variants
2022-08-03 13:55:03 +01:00
Yassine Oudjana c534e4010c community/soc-qcom-msm8996: add UCM configuration for Xiaomi MSM8996 devices (MR 3333)
[ci:skip-build]: already built successfully in CI
2022-08-02 09:43:52 +02:00
Yassine Oudjana 7edd56e50a community/linux-postmarketos-qcom-msm8996: upgrade to 5.18.15 (MR 3333) 2022-07-31 23:03:43 +01:00
Anton Bambura 4dfa72c680 google-nyan-big: new device (MR 3325)
Co-Authored-By: Segfault <awarnecke002@hotmail.com>
[ci:skip-build]: already built successfully in CI
2022-07-31 22:03:21 +02:00
Anton BamburaandSegfault fcffd2b4b5 google-nyan-blaze: new device (MR 3325)
Co-Authored-By: Segfault <awarnecke002@hotmail.com>
2022-07-31 22:03:13 +02:00
Anton Bambura 4799d000d9 u-boot-nyan-4gb: new aport (MR 3325) 2022-07-31 22:03:13 +02:00
Anton Bambura c23d44be33 u-boot-nyan-2gb: new aport (MR 3325) 2022-07-31 22:03:13 +02:00
Anton BamburaandSegfault f7ef5ff857 linux-google-nyan: new aport (MR 3325)
Co-Authored-By: Segfault <awarnecke002@hotmail.com>
2022-07-31 22:03:08 +02:00
Albin Martinsson 2aa7b9d72e lenovo-tb-x704f: new device (MR 3326)
Wiki: https://wiki.postmarketos.org/wiki/Lenovo_TAB4_10_Plus_(lenovo-tb-x704f)

[ci:skip-build] Already built successfuly on CI in MR
2022-07-31 15:38:53 +02:00
pcworld 570d55b47e linux-postmarketos-allwinner: Enable AF8133J magnetometer driver (MR 3324)
The AF8133J magnetometer is being used since the PinePhone Beta edition
in place of the earlier ST LIS3MDL magnetometer.

[ci:skip-build] Already built successfuly on CI in MR
2022-07-29 21:27:09 -04:00
Oliver Smith 20472ab79c cross/gcc-*: upgrade to 11.2.1_git20220219-r5 2022-07-29 09:48:13 +02:00
Oliver Smith 0d1a11d700 cross/binutils-*: upgrade to 2.38-r4 2022-07-29 09:48:08 +02:00
Anton Bambura beeba0b911 google-kevin: new device (MR 3215)
[ci:skip-build]: already built successfully in CI
2022-07-29 09:41:43 +02:00
Anton Bambura 2d47ede894 temp/alsa-ucm-conf-google-gru: new aport (MR 3215) 2022-07-29 09:41:36 +02:00
Anton Bambura c1464d8f16 linux-postmarketos-rockchip: add support for gru chromebooks (MR 3215) 2022-07-29 09:41:36 +02:00
Ben Westover 30e95a0f20 amazon-ford: new device (MR 3286)
[ci:skip-build]: already built successfully in CI
2022-07-29 09:38:50 +02:00
Luca Weiss ac6030a6e7 fairphone-fp4: fix osk-sdl touch and flash kernel on upgrade (MR 3321)
The touchscreen currently is on i2c-gpio due to issues with the hardware
i2c. Include the module in initfs so the touch driver probes and is
usable in osk-sdl.

[ci:skip-build]: already built successfully in CI
2022-07-29 09:35:02 +02:00
Martin Lillepuu 881bbdd158 testing/firmware-oneplus-oneplus3t: add custom ath10k board file (MR 3313)
[ci:skip-build]: already built successfully in CI
2022-07-28 09:01:35 +02:00
Martin Lillepuu 2959b6c15d linux-postmarketos-qcom-msm8996: tweak configs (MR 3317)
Enable:
* CONFIG_UINPUT required by fbkeyboard
* CONFIG_PSTORE_PMSG required to enable dmesg/console ramoops

Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
[ci:skip-build]: already built successfully in CI
2022-07-28 08:41:01 +02:00
Pablo Correa Gómez 7ebf3bfc71 main/device-pine64-pinephone: add logind and upower fwupd plugins (MR 3320)
Otherwise, an update could be allowed even if the phone is not
connected to AC and it might also suspend in the middle of the upgrade
2022-07-27 10:57:31 -04:00
Pablo Correa Gómez 0007ee331c main/device-pine64-pinephone: add logind and upower fwupd plugins (MR 3320)
Otherwise, an update could be allowed even if the phone is not
connected to AC and it might also suspend in the middle of the upgrade
2022-07-27 10:57:31 -04:00
David Wronek 28132d3af0 samsung-a6plte: new device (MR 3311) 2022-07-27 14:39:31 +03:00
Clayton Craft b26e5287f7 device-oneplus-lemonade: support header v2 (MR 3297)
Co-authored-by: Jami Kettunen <jami.kettunen@protonmail.com>
[ci:skip-build]: already built successfully in CI
2022-07-27 08:57:38 +02:00
Clayton Craft d12a0772d5 main/boot-deploy: upgrade to 0.6 (MR 3297) 2022-07-27 08:57:02 +02:00
Adam Thiede 6545705115 device-pine64-pinephonepro: add gschema override for keyboard symbols (MR 3310)
[ci:skip-build]: already built successfully in CI
2022-07-27 08:42:49 +02:00
Adam Thiede 7b0017628f device-pine64-pinephone: add gschema override for keyboard symbols (MR 3310) 2022-07-27 08:42:33 +02:00
Martin Lillepuu 5b0ff093f7 oneplus3t: update dtb name (MR 3312)
[ci:skip-build]: already built successfully in CI
2022-07-27 08:22:36 +02:00
Oliver Smith 21792f411d cross/busybox-static: upgrade to 1.35.0-r20 2022-07-24 17:16:01 +02:00
Oliver Smith 69afe6cfc7 u-boot-*: bump pkgrel after a-t-f upgrade (MR 3291)
Bump the remaining users of arm-trusted-firmware besides
u-boot-pinephone.

[ci:skip-build]: already built successfully in CI
2022-07-24 17:11:48 +02:00
Dylan Van Assche 47c6d4995a soc-qcom-sdm845: shutdown when battery is critical (MR 3287)
UPower defaults to HybridSleep mode when battery is critical.
Since we allow suspending the device in regular use, this approach
won't help in a critical battery case scenario. When the battery
level is critical, shutdown the device instead.

Moreover, adjust the default levels for battery low, critical, critical
action since they are too high for SDM845 devices.
2022-07-24 17:07:55 +02:00
Anton Bambura feb91937c1 main/postmarketos-mkinitfs: support mounting with UUIDs (MR 3298) 2022-07-24 16:58:55 +02:00
Anton Bambura d14ca29400 main/postmarketos-update-depthcharge-kernel: new aport (MR 3290) 2022-07-23 22:07:18 -04:00
Laar3 fca17c6e08 postmarketos-mkinitfs: add option to disable splash (MR 3305)
Add PMOS_NOSPLASH as a kernel command line option to disable
the splash screen to show the logs on the screen for debugging.

See https://wiki.postmarketos.org/wiki/Initramfs_development
on how to use it.
2022-07-23 17:51:37 +00:00
Dylan Van Assche b23b3c4cd8 device-kobo-clara: add mesa-dri-gallium dep (MR 3306)
Mesa dependency was missing causing the screen to stay blank after boot
2022-07-23 11:17:01 -04:00
djyee 49d91586ad samsung-treltexx: new device (MR 3285)
[ci:skip-build] already built successfully in CI
2022-07-21 21:03:47 -07:00
Newbyte d22e6e0511 samsung-gavini: new device (MR 3289)
[ci:skip-build] already built successfully in CI
2022-07-21 21:01:13 -07:00
Newbyte 896412ae8d samsung-codina-tmo: new device (MR 3289) 2022-07-21 21:01:13 -07:00
Newbyte 5c9d8a5840 samsung-kyle: new device (MR 3289) 2022-07-21 21:01:13 -07:00
Luca Weiss 91ca0bfa01 device/*: replace old mesa-dri- dependencies with gallium (MR 3257)
vc4 and freedreno have been provided by mesa-dri-gallium for a long
time.

mesa-dri-intel subpackage has been deprecated for a while (previously
dependend on dri-classic and dri-gallium)

mesa-dri-classic drivers is removed because mesa upstream has removed
those old drivers from the tree. They've been replaced (for not-ancient
hardware) by gallium.

See also https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31848
2022-07-21 13:53:12 +02:00
Newbyte 22882900bd linux-htc-golfu: adopt (MR 3300)
[ci:skip-build]: already built in CI / just metadata changed
2022-07-21 08:48:00 +02:00
Newbyte 8fea4d0db3 firmware-htc-m8qlul: adopt (MR 3300) 2022-07-21 08:47:49 +02:00
Newbyte 54b0179f8e CODEOWNERS: add myself where appropriate (MR 3300) 2022-07-21 08:47:49 +02:00
Newbyte 50f50da0d9 CODEOWNERS: order alphabetically (MR 3300) 2022-07-21 08:47:44 +02:00
Martijn Braam 6cb9bf823b temp/gtk+3.0: rebuild against newer pango (MR 3304) 2022-07-20 23:16:14 +02:00
Newbyte 8c85821115 cross/gcc-armhf: upgrade to 11.2.1_git20220219-r4 2022-07-20 10:24:09 -04:00
Dylan Van Assche a3f7bf3e1a main/postmarketos-base: use setup-devd (MR 3302)
Alpine does not use setup-udev anymore and provides the same
functionality through setup-devd. The setup-udev script was deleted [1]
but postmarketos-base still used it and caused pmbootstrap to fail when
building a device image. Use the rc-service setup directly from
setup-devd.

[1] https://gitlab.alpinelinux.org/alpine/aports/-/commit/b56c4c2b9ddea6007c5e4349f97310a1538f29b6
2022-07-20 10:05:27 -04:00
Minecrell 074a142319 cross/gcc-{armv7,aarch64}: upgrade to 11.2.1_git20220219-r4
Fix the following error:

ERROR: unable to select packages:
  libstdc++-11.2.1_git20220219-r4:
    breaks: g++-aarch64-11.2.1_git20220219-r3[libstdc++=11.2.1_git20220219-r3]
    satisfies: gcc-11.2.1_git20220219-r4[so:libstdc++.so.6]
               binutils-2.38-r3[so:libstdc++.so.6]
               ccache-4.6.1-r0[so:libstdc++.so.6]
  gcc-11.2.1_git20220219-r4:
    breaks: g++-aarch64-11.2.1_git20220219-r3[gcc=11.2.1_git20220219-r3]

The new version does not seem to be in the armhf repos yet so skip that
one for now.
2022-07-19 18:45:58 +02:00
Pablo Correa Gómez ca8a14e0c8 temp/gtk4.0: upgrade to 4.6.6 (MR 3294)
[ci:skip-build] already built successfully in CI
2022-07-18 15:26:31 -07:00
Minecrell c51cfe0c06 modem/rmtfs: upgrade to 0.2_git20220718 (MR 3296)
No functional change, the patch was finally merged so we can drop it.
2022-07-18 23:16:20 +02:00
Oliver Smith e6fc18b008 main/postmarketos-ui-*: recommend postprocessd (MR 3292)
Adjust UIs that pre-install megapixels (not megapixels-gtk3) to also
recommend using postprocessd. This pulls in opencv, but overall improves
the usability of megapixels a lot so it seems worth installing by
default.

[ci:skip-vercheck]: _pmb_recommends doesn't need a pkgrel bump
2022-07-17 20:16:05 +02:00
Bobby The Builder 389267bb21 linux-allwinner: upgrade to 5.18.7 (MR 3263)
[ci:skip-build]: already built successfully in CI
2022-07-17 17:12:03 +02:00
Bobby The Builder 41fec92f75 main/u-boot-pinephone: upgrade to 2022.07 (MR 3263) 2022-07-17 17:11:52 +02:00
Bobby The Builder 858c730020 temp/arm-trusted-firmware: upgrade to 2.7.0 (MR 3263) 2022-07-17 17:10:49 +02:00
Yassine Oudjana ba3896f2ae community/firmware-xiaomi-scorpio: Add QCA6174 board firmware (MR 3271) 2022-07-15 16:07:41 +02:00
Oliver Smith ae068eac13 channels.cfg: mark v21.12 as unsupported (EOL) 2022-07-12 08:22:08 +02:00
Oliver Smith f50d8b96d7 temp/calamares-extensions: fork, increase timeout (MR 3280)
Increase the timeout for the PartitionJob from 2 min to 10 min, so it
works on the PinePhone Pro with its 128 GiB eMMC.

Related: https://github.com/calamares/calamares-extensions/pull/20
[ci:skip-vercheck]: forked pkg intentionally not having pkgrel=0
2022-07-11 08:38:43 +02:00
Oliver Smith c798839c60 pine64-pinephonepro: tweak kernel parameters (MR 3280)
* set PMOS_FORCE_PARTITION_RESIZE
* set loglevel=1 to have less verbose kernel output during boot, same as
  for the pinephone
2022-07-11 08:32:04 +02:00
Oliver Smith aa996d27b0 main/postmarketos-ondev: upgrade to 0.8.1 (MR 3280) 2022-07-11 08:32:04 +02:00
Oliver Smith f608015ea3 pine64-pinephonepro: fix dev_internal_storage (MR 3280) 2022-07-11 08:31:59 +02:00
Minecrell 0737d3089a qemu: add option to use linux-edge(4virt) kernel (MR 3281) 2022-07-10 20:42:33 -04:00
Richard Qian 43e3bc87df samsung-d2vzw: new device (Samsung Galaxy SIII (Verizon)) (MR 1761)
[ci:skip-build]: already built successfully in CI
2022-07-10 16:55:33 +02:00
Luca Weiss 724f4dc8b2 bq-paella: update maintainers (MR 3200)
Jonathan hasn't been active on GitLab since more than a year, so remove
them from the maintainer list for this device.
2022-07-08 21:29:18 +02:00
Luca Weiss 0dc7fabb1f device-lg-hammerhead: add gpu flag (MR 3159)
GPU has been supported for a while in the mainline-ish kernel, so let
pmbootstrap show UIs like Phosh.
2022-07-08 21:06:15 +02:00
Oliver Smith 28e2019ff7 pine64-pinephonepro: fix audio with alsa-lib 1.2.7 (MR 3272)
Let /usr/share/alsa/ucm2/conf.d/simple-card/*.conf be a symlink,
as it is expected since alsa-lib 1.2.7.

Related: https://github.com/alsa-project/alsa-lib/commit/d6adde0e32376554e461098dcd7cfdb824fabd1e
[ci:skip-build]: already built successfully in CI
2022-07-08 00:04:54 +02:00
Martijn Braam e99bc1224d device/pine64-pinephonepro: add bluetooth firmware (MR 3278)
[ci:skip-build]: already built successfully in CI
2022-07-07 23:31:18 +02:00
Martijn Braam f59355bf6b device/pine64-pinephonepro: update kernel to 5.17.9 (MR 3278) 2022-07-07 14:58:22 +02:00
Alexey Minnekhanov 04d250d328 cross/busybox-static-*: upgrade to 1.35.0-r18 2022-07-07 10:57:27 +03:00
Martijn Braam 560c92cff3 device/pine64-pinephonepro: clean up kconfig (MR 3238)
[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-07-07 09:27:18 +02:00
Martijn Braam 11e959cc01 device/pine64-pinephonepro: fix up firmware (MR 3238)
Remove the firmware that was copied from the pine64-pinephone and add
the cdn-dp firmware for the rockchip platform.

[ci:skip-vercheck]
2022-07-07 09:26:57 +02:00
Martijn Braam b58b7cfbd4 device/pine64-pinephonepro: fix calling (MR 3238) 2022-07-07 09:26:57 +02:00
Martijn Braam 484b23f7a0 device/pine64-pinephonepro: Move to commmunity (MR 3238) 2022-07-07 09:26:57 +02:00
Richard Qian 02aaa6eae6 amazon-austin: new device (MR 3251)
Based on hexdump0815 and GjergjiFloychi's work.

[ci:skip-build] Already built successfuly on CI in MR
2022-07-06 12:13:47 -04:00
Minecrell d9326d5ac9 modem/tqftpserv: start before rmtfs (MR 3269)
Ideally tqftpserv should be started before rmtfs. This is because rmtfs
is currently responsible for starting the modem, and it's best for
performance if all the services needed by the modem are already up.

Also change "want" -> "use" for consistency with rmtfs. The difference
between "want" and "use" is that "want" just triggers starting of the
other service, while "use" also ensures that the other service starts
successfully.
2022-07-05 18:49:25 +02:00
Minecrell dcd3ae8f07 modem/rmtfs: upgrade to 0.2_git20210809, start before networkmanager (MR 3269)
Also include z3ntu's patch fixing a buffer overread issue which sadly
has not been merged for several months now.

rmtfs should be ideally started and stopped before NetworkManager
because otherwise the modem network interface might be removed before
NetworkManager can set it down. This has caused kernel issues at some
point (although it seems to be fine again at the moment).
2022-07-05 18:49:21 +02:00
Minecrell df4b8c44d1 modem/qrtr: upgrade to 0.3_git20201207 (MR 3269) 2022-07-05 18:49:16 +02:00
Jianhua Lu f27ec087f8 xiaomi-elish: Add support for dynamic partition and wifi & venus (MR 3277)
[ci:skip-build] already built successfully in CI
2022-07-05 18:46:15 +02:00
Jianhua Lu 0c80af7aa3 firmware-xiaomi-elish: Add venus firmware (MR 3277) 2022-07-05 18:42:39 +02:00
Jianhua Lu 6d8bc79c1d linux-postmarktos-qcom-sm8250: Refactor this APKBUILD and upgrade to 5.19.0-rc5 (MR 3277)
Enable wifi and venus driver, sm8250 soc has the qca6390 wifi module connected to pcie0, this driver is contained in
ath11k_pci in mainline.
2022-07-05 18:42:35 +02:00
Harry Austen 700756cad2 community/linux-postmarketos-qcom-msm8996: add support for iwd (MR 3266)
These options are required by `iwd`. Make use of the `kconfigcheck-iwd`
APKBUILD option to ensure the required config options remain selected.

[ci:skip-build] already built successfully in CI
2022-07-05 18:39:04 +02:00
Harry Austen 01ffe2082a testing/firmware-oneplus-oneplus3: add custom ath10k board file (MR 3266)
This enables support for the oneplus3's QCA6174 WiFi chipset. The
`board-2.bin` file (overwriting the file with the same name from the
`linux-firmware-ath10k` package) is created from `bdwlan30.bin`, which
is extracted from the baseband modem firmware disk image,
`NON-HLOS.bin`. This board file has not yet been upstreamed.
2022-07-05 18:37:57 +02:00
Harry Austen affa4d24d2 main/qca-swiss-army-knife: new aport (MR 3266)
qca-swiss-army-knife contains a number of utilities to help and debug
Qualcomm Atheros wireless driver development.
2022-07-05 18:37:52 +02:00
Clayton Craft c442dfbd5f purism-librem5: update paths to ucm to support alsa 1.2.7 (MR 3265)
conf.d expects symlinks now, see:
https://github.com/alsa-project/alsa-lib/commit/d6adde0e32376554e461098dcd7cfdb824fabd1e

[ci:skip-build] already built successfully in CI
2022-07-05 09:21:23 -07:00
Oliver Smith 5572c21fa3 pine64-pinetab: fix audio with alsa-lib 1.2.7 (MR 3273)
Let /usr/share/alsa/ucm2/conf.d/simple-card/*.conf be a symlink,
as it is expected since alsa-lib 1.2.7.

Related: https://github.com/alsa-project/alsa-lib/commit/d6adde0e32376554e461098dcd7cfdb824fabd1e
2022-07-05 11:44:32 -04:00
Shinjo Park 8302ff553a lg-madai: new device (LG Fx0) (MR 3276)
Because I don't have access to the serial port yet, I begin with the
vendor kernel.
* Make display work by setting to 16bpp

[ci:skip-build]: already built successfully in CI
2022-07-05 08:13:31 +02:00
Oliver Smith 0c4b793bc8 temp/gtk+4.0: replace at-spi2-atk/atk with at-spi2-core (MR 3274)
Fix for:
  missing depend(s): atk-dev

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/926ab65be5c376ea66bbf36c039a3c8e3969c301
[ci:skip-build]: already built successfully in CI
2022-07-04 07:50:18 +02:00
Oliver Smith 9787be25fe temp/gtk+3.0: replace at-spi2-atk/atk with at-spi2-core (MR 3274)
Fix for:
  missing depend(s): atk-dev

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/926ab65be5c376ea66bbf36c039a3c8e3969c301
2022-07-03 18:46:31 +02:00
Oliver Smith f07bf45b73 cross/musl-*: upgrade to 1.2.3-r1 2022-07-03 18:38:57 +02:00
Oliver Smith 3a2007c36b pine64-pinephone: fix audio with alsa-lib 1.2.7 (MR 3267)
Let /usr/share/alsa/ucm2/conf.d/simple-card/*.conf be a symlink,
as it is expected since alsa-lib 1.2.7.

Related: https://github.com/alsa-project/alsa-lib/commit/d6adde0e32376554e461098dcd7cfdb824fabd1e

[ci:skip-build] already built successfully in CI
2022-07-02 23:29:05 -07:00
Dylan Van Assche 18a50389d6 device-pine64-pinebookpro: drop ALSA UCM configs (MR 3268)
ALSA UCM configs are now upstreamed which causes
a conflict with the device package as both are now
providing the same files. Drop our configs in the device package.
2022-07-02 16:16:28 -04:00
Anton Bambura df7444b1b0 google-veyron-jerry: add myself as co-maintainer (MR 3270) 2022-07-02 13:16:04 -04:00
Anton Bambura 64ab8ce76b temp/alsa-ucm-conf-google-veyron: drop (MR 3270) 2022-07-02 13:16:02 -04:00
Clayton Craft ed3ba95558 cross/gcc-*: upgrade to 11.2.1_git20220219-r3 2022-06-30 15:39:20 -07:00
Shinjo Park 1a57242213 samsung-kiran: new device (Samsung Z1) (MR 3234)
The kernel is based on Samsung's downstream kernel for the device. Some
configuration changes are required to make the kernel to work:
* Tizen kernel uses SLP USB gadget, changed to Android USB gadget.
* sprdfb patches and modification on the devicetree files are required
  to use the framebuffer.
* Other required pmOS kernel settings were enabled.
* Tizen does not use initramfs, use RAMDISK partition to store initramfs
  of pmOS (like heimdall-isorec configuration). As far as I know, no
  alternative OS exists for this device so this is the very first usage.
* Flash the root file system to USER, as ROOTFS is < 1 GB in size and
  USER is about 2.7 GB.

samsung-kiran: Update device and firmware packages

* Changed kernel configuration for firmware path to follow postmarketOS.
* Post install script to mount CSA partition

CSA partition [1] contains non-volatile data for Tizen devices. As
Samsung Z1 uses this partition to store Wi-Fi and Bluetooth information,
mount this partition to use within postmarketOS.

[1] https://docs.tizen.org/platform/porting/kernel/

linux-samsung-kiran: Use lzop to decompress initramfs

This synchronizes behavior with other heimdall-isorec devices.

[ci:skip-build] Already built successfuly on CI in MR
2022-06-30 12:11:59 -04:00
Luca Weiss e147b0f1a0 fairphone-fp4: add vulkan and haptics (MR 3262)
Add udev rule to make feedbackd handle haptics.

With mesa where A619 is supported (which isn't packaged in pmaports
anyways but it's just one small patch that should go upstream in the
near future) Vulkan works absolutely fine, so install the driver for it.

[ci:skip-build] Already built successfuly on CI in MR
2022-06-30 09:15:45 -04:00
Luca Weiss b5dd55f277 testing/firmware-fairphone-fp4: remove board-2.bin (MR 3262)
This file is now provided by linux-firmware-ath10k and conflicts with
the one provided by this package.
2022-06-30 09:15:44 -04:00
Luca Weiss d25c061ee2 testing/linux-postmarketos-qcom-sm6350: upgrade to 5.19_rc1 (MR 3262)
New features:
* AW8695 haptics driver (for FP4)
* Interconnect
2022-06-30 09:15:43 -04:00
Newbyte 7e94b27b71 CI: remove msm-firmware-loader from shellcheck (MR 3260)
msm-firmware-loader is in its own repo now.
2022-06-29 08:07:58 +02:00
Newbyte 469acb86b4 main/msm-firmware-loader: use separate repo as source (MR 3260)
Closes https://gitlab.com/postmarketOS/pmaports/-/issues/1292
2022-06-29 08:07:53 +02:00
Oliver Smith 3a964003e7 main/postmarketos-welcome: upgrade to 0.5.1 (MR 3249) 2022-06-29 07:59:20 +02:00
Luca Weiss 9f36519cf1 sony-leo: clean up device package (MR 3250)
Add flash method fastboot so we can actually flash it with pmbootstrap,
remove outdated 90-android-touch-dev.rules and improve the formatting
throughout the APKBUILD.

[ci:skip-build] already built successfully in CI
2022-06-28 20:57:45 -07:00
Oliver Smith c5c623221a asus-flo: fix using downstream kernel (MR 3256)
Don't try to append the dtb if using the downstream kernel.

Fix for:
  ERROR: File not found: /usr/share/dtb/qcom-apq8064-asus-nexus7-flo.dtb
Fixes: MR 2239 ("main/linux-postmarketos-qcom-apq8064: new aport")

[ci:skip-build] already built successfully in CI
2022-06-28 20:56:01 -07:00
Newbyte 2148e3b774 lg-judyln: add myself as maintainer (MR 3261)
[ci:skip-build] already built successfully in CI
2022-06-28 20:53:08 -07:00
Clayton Craft b06f5c6f72 linux-purism-librem5: upgrade to 5.18.5 (MR 3253)
Upstream changelog:

https://source.puri.sm/Librem5/linux/-/commit/5167067a7a895be6fd1317bace5d4009dc3d1dfa

[ci:skip-build]: already built successfully in CI
2022-06-27 08:58:01 +02:00
Oliver Smith 3c2d684546 cross/grub-efi-x86: upgrade to 2.06-r5 2022-06-27 08:36:05 +02:00
Oliver Smith 50c625c7fb cross/binutils-*: upgrade to 2.38-r3 2022-06-27 08:36:00 +02:00
bjorn3 6712fc6922 samsung-s3ve3g: fix signature mismatch for msm_pm_boot_init (MR 3248)
This previously caused msm_pm_boot_init to incorrectly get handled as
__init function when it needs to be an __devinit function as it is
called by msm_pm_boot_probe, which is an __devinit function.

[ci:skip-build]: already built successfully in CI
2022-06-24 10:20:04 +02:00
bjorn3 c7dd25cb51 samsung-s3ve3g: Use the ondemand scaling governor (MR 3248)
This prevents the device from getting pretty hot
2022-06-24 10:17:52 +02:00
Ben Westover a9f2075aae lg-mmh4x: new device (LG K40) (MR 3231)
[ci:skip-build]: already built successfully in CI
2022-06-23 09:22:24 +02:00
Rajin Gangadharan 1476dba6f2 motorola-panelli: new device (MR 3246)
[ci:skip-build]: already built successfully in CI
2022-06-23 09:06:49 +02:00
Shinjo Park ef0f70f9d7 main/tizen-mkdzimage: new aport (MR 3247)
dzImage generation tool for Tizen devices. The same dzImage format is
used in all Samsung's Tizen devices (Spreadtrum, Qualcomm, Exynos), so
we pick the latest script from the Tizen's Exynos kernel package.
2022-06-22 10:24:07 +00:00
Richard Acayan e07d1716cd main/make-dynpart-mappings: upgrade to 10.2.4 (MR 3244) 2022-06-22 09:29:36 +02:00
Oliver Smith f108c30736 cross/busybox-static-*: upgrade to 1.35.0-r17 2022-06-22 09:04:27 +02:00
András El Koulali 51731f7990 samsung-coreprimevelte: correctly use uImage as kernel (MR 3144) 2022-06-22 08:59:05 +02:00
André Apitzsch 8db94cb77b linux-postmarketos-stericsson: upgrade to 5.19-rc2 (MR 3243)
Also enable NFC support for Codina P

[ci:skip-build] Already built successfuly on CI in MR
2022-06-19 11:27:30 -04:00
Oliver Smith 63bc318a16 cross/busybox-static-*: upgrade to 1.35.0-r16 2022-06-19 11:26:32 +02:00
Sönke Holz 4c1d852356 samsung-xcover4lte: use sm-sparse-image-tool (MR 3222)
The option `deviceinfo_flash_sparse_samsung_format` seems to work
fine on the xcover4lte.

Setting `deviceinfo_flash_sparse_samsung_format` to `1` (and
`deviceinfo_flash_sparse="true"`) causes heimdall to no longer hang
while the rootfs is being flashed.

[ci:skip-build]: already built successfully in CI
2022-06-19 11:13:56 +02:00
Shinjo Park 89aafe235a shared-patches: add spreadtrum patches (MR 3242)
Merge and move Spreadtrum patches from these kernels to shared-patches:
* linux-finepower-f1
* linux-samsung-{gtel3g,gtelwifi,j1mini3g,j3xnlte}
* linux-zte-p731a20

[ci:skip-build]: already built successfully in CI
2022-06-19 10:57:00 +02:00
Uli Roth 2eb1a1199b firmware-xiaomi-beryllium: remove board-2.bin to solve conflict (MR 3241)
Remove board-2.bin firmware as it is already included in linux-firmware-ath10k.

Fixes #1567
2022-06-17 19:10:05 +03:00
Arnavion f8df093985 device/pine64-pinephone: add additional modem udev rule for new community firmware serial (MR 3240)
Ref: https://github.com/Biktorgj/pinephone_modem_sdk/releases/tag/0.6.7

>Set USB port serial number to `community_fw`, so distros can use
a specific ruleset in udev for this firmware and a different one
when using stock
2022-06-16 22:15:58 +02:00
Anton Bambura e4c9eaf06e linux-postmarketos-exynos5: fix Mali T628 (MR 3217)
[ci:skip-build] Already built successfuly on CI in MR
2022-06-16 15:44:34 -04:00
Richard Acayan 20c7501b50 main/postmarketos-mkinitfs: resize_root_partition: resize dm-* devices (MR 3216)
Prior to this commit, the initramfs was unable to resize the root
partition if it was on a device backed by the device mapper. This commit
fixes that now that it is possible for the root partition to lie on a
device mapper device.
2022-06-16 10:12:07 +02:00
Przemysław Romanik 580ff69729 samsung-crownlte: add Bluetooth support (MR 3224)
[ci:skip-build]: already built successfully in CI
2022-06-16 09:58:16 +02:00
Dylan Van Assche f9c7ffa9b6 temp/pulseaudio: fork for Bluetooth HFP/HSP support (MR 3080)
PulseAudio is used for handling all audio on postmarketOS.
This also involves Bluetooth audio such as A2DP, HSP and HFP audio.
In the case of HFP/HSP, the HF and AG can interact with each other
through AT commands defined in the Bluetooth HFP 1.8 spec.

This set of patches implements HFP support to allow Bluetooth devices
to accept/reject/hangup calls, dial numbers, DTMF tone generation,
query signal strength, roaming status, service status, AG battery level,
call status, etc.

More details in the upstream MR:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/693

Available in edge for testing this merge request with a broader user
base. Not intended for backporting to stable branches.

[ci:skip-build]: already built successfully in CI
2022-06-16 09:33:35 +02:00
Jami Kettunen 6fbaf44b0a linux-postmarketos-grate: add vndbinder device for Waydroid (MR 3239)
[ci:skip-build]: already built successfully in CI
2022-06-16 08:49:09 +02:00
Jami Kettunen 46676e735d linux-postmarketos-rockchip: add vndbinder device for Waydroid (MR 3239) 2022-06-15 21:30:54 +03:00
M0Rf30 13fce2b163 linux-xiaomi-vince: upgrade to 4.9.317 (MR 3221)
This involves also config, synced with upstream

[ci:skip-build] Already built successfuly on CI in MR
2022-06-15 11:57:45 -04:00
Oliver Smith f7b5c3bed2 main/postmarketos-release-upgrade: upgrade to 1.2.1 (MR 3237) 2022-06-15 13:09:46 +02:00
Martijn Braam b62d7f6e7c device/pine64-pinephone: add recommended modem udev rules (MR 3235)
For the Biktorgj firmware the control/power file should be set to on
instead of auto. By matching on the serial number this only applies to
modems with the community firmware installed.
2022-06-15 12:30:26 +02:00
Oliver Smith cc5a379809 main/postmarketos-ui-sxmo-*: fix _pmb_recommends (MR 3236)
gnome-icon-theme has been dropped in alpine edge in favor of
adwaita-icon-theme. Adjust the _pmb_recommends of the Sxmo UI packages.

Fix for:
  package 'gnome-icon-theme' from _pmb_recommends not found for arch 'x86_64'

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/b24abe8a2c915a5da358a9588565e203dd765286
Related: https://gitlab.com/postmarketOS/pmaports/-/jobs/2593231817
[ci:skip-vercheck]: changing _pmb_recommends doesn't need version bump
2022-06-15 12:24:10 +02:00
Newbyte 50f392df43 main/postmarketos-ui-gnome: don't mark UI as hardware accelerated (MR 3041)
While GNOME does require hardware acceleration, GNOME's X11 mode
(not sure about Wayland mode) does work without DRM support, so
it works fine with software rendering on devices without a working
GPU as long as fbdev works.

I think this raises the question of whether we should rename
pmb:hw-accel to pmb:drm as e.g. Phosh should work without 3D
acceleration if a device e.g. uses a kernel with SimpleDRM support,
but that is out of scope for this MR/commit.

Effectively reverts 638362de63

[ci:skip-vercheck]
2022-06-15 11:33:37 +02:00
Oliver Smith 01e348b3a5 main/postmarketos-release-upgrade: upgrade to 1.2.0 (MR 3232)
Most importantly, this fixes upgrading to edge.

Related: https://gitlab.com/postmarketOS/postmarketos-release-upgrade/-/tags/1.2.0
2022-06-14 10:19:20 +02:00
Alexander Martinz cdc9bb564b community/linux-postmarketos-qcom-sdm845: upgrade to 5.18.3 (MR 3213)
For a merge list, please see the merge commits:
  - 5.18.1 - (https://gitlab.com/sdm845-mainline/linux/-/commit/3d98cf52b5d07eeac01a03c86325c9c48f39e9c4)
  - 5.18.2 - (https://gitlab.com/sdm845-mainline/linux/-/commit/99cf0d285f5059176ab59b14b3b1dff8002f1407)
  - 5.18.3 - (https://gitlab.com/sdm845-mainline/linux/-/commit/b425b70a6379f3415ed349f5c5719d4a6f315523)

-----

This also changes the following Kconfig options:
  - CONFIG_SCSI_UFS_BSG -> y

Change-Id: I4406f381b48a894ea0bff3006fb3fa62683e61a0
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
[ci:skip-build]: already built successfully in CI
2022-06-14 10:13:41 +02:00
Pablo Correa Gómez f4783d4c88 main/postmarketos-mkinitfs: provide only a virtual package (MR 3228)
Fixes 02dfe83c4b

The previous `provides="mkinifs=3.6.0"` was a requirement because alpine's
kernels had a minimum dependency in `mkinitfs>=3.6.0` to make sure that
support for compressed modules existed. That requirement is no longer
in place[1], since the dependency is now on the `initramfs-generator`
virtual package. Also, since `initramfs-generator` is a virtual package
and not a real package, versioning it might mess up APK. The documentation
explictly states that virtual packages are those with unversioned provides
and a provider_priority. So to avoid having problems in the future, let's
strictly stick to it.

[1] https://gitlab.alpinelinux.org/alpine/aports/-/commit/4fac61c826cac81af72e095b645098900d3094a1
2022-06-14 09:54:04 +02:00
Oliver Smith 6c01d67f3c pine64-pinephone: update maintainers list (MR 3199)
* add myself as maintainer
* remove Clayton and Bart

[ci:skip-vercheck]
2022-06-14 09:36:17 +02:00
Oliver Smith b874bcf4c9 channels.cfg: mark v22.06 as released
Related: https://postmarketos.org/blog/2022/06/12/v22.06-release/
2022-06-13 21:17:42 +02:00
David Wales 84cba1b36d raspberry-rpi0: fix use of deprecated initramfs-<flavor> (MR 3225)
This is the same as c8b3a16e38, but
for the Raspbberry Pi 0.

Related to !2731
2022-06-13 17:51:49 +02:00
David Wales 76e388c2d5 raspberry-rpi: fix use of deprecated initramfs-<flavor> (MR 3225)
This is the same as c8b3a16e38, but
for the original Raspbberry Pi.

Related to !2731
2022-06-13 17:51:46 +02:00
Clayton Craft c5c0e0f061 main/postmarketos-mkinitfs: add missing ascii nls module (MR 3229)
This is required by fat32, fixes #1555
2022-06-12 10:26:16 -07:00
Jakob Hauser b6f19a2ed7 main/postmarketos-base: remove udev rule for rt5033 battery refresh (MR 3223)
The refresh method was removed in UPower version 0.99.18 for regular
usage (available in debug mode only).
2022-06-12 15:44:47 +02:00
Clayton Craft 02dfe83c4b main/postmarketos-mkinitfs: provide initramfs-generator (MR 3219)
Alpine provides a 'initramfs-generator' thing now that the alpine
linux-* depend on explicitly. This sets postmarketos-mkinitfs to be the
preferred provider of that virtual package.

Fixes:
        ERROR: unable to select packages:
          postmarketos-mkinitfs-1.4.1-r5:
            conflicts: mkinitfs-3.6.1-r2[mkinitfs=3.6.0]
            satisfies: postmarketos-base-20-r1[postmarketos-mkinitfs]
                       postmarketos-base-nofde-20-r1[postmarketos-mkinitfs]
                       .pmbootstrap-20220610.215815[postmarketos-mkinitfs]
                       .pmbootstrap-20220610.215815[mkinitfs]
          mkinitfs-3.6.1-r2:
            conflicts: postmarketos-mkinitfs-1.4.1-r5
            satisfies: .pmbootstrap-20220610.215815[mkinitfs]
                       linux-rpi-5.15.45-r1[initramfs-generator]
          .pmbootstrap-20220610.215815:
            masked in: cache
            satisfies: world[.pmbootstrap=20220610.215815]

Also see:
        30d7b88324 (aports) main/mkinitfs: provide initramfs-generator
        4fac61c826 (aports) main/linux-lts: replace mkinitfs with initramfs-generator
2022-06-12 15:33:57 +02:00
Oliver Smith b3a26d80b7 main/postmarketos-release-upgrade: upgrade to 1.1.2 (MR 3227) 2022-06-12 14:07:09 +02:00
Oliver Smith bd5fe72ccf main/postmarketos-welcome: upgrade to 0.5.0 (MR 3226) 2022-06-12 13:01:06 +02:00
Oliver Smith 636f22a038 cross/grub-efi-x86: upgrade to 2.06-r4 2022-06-12 12:33:06 +02:00
Oliver Smith 6e4625ac27 cross/busybox-static-*: upgrade to 1.35.0-r15 2022-06-12 12:27:02 +02:00
Raymond Hackley 3c0dd53efb samsung-{j3,j5,j5x}: Add panel and touchscreen modules to initfs (MR 3081)
Add panel and Imagis touchscreen for J3, J5 and J5X.

[ci:skip-build] already built successfully in CI
2022-06-11 15:56:39 -07:00
Raymond Hackley 23a25798fe samsung-j5: depends on soc-qcom-msm8916-rproc (MR 3081)
Add modem support for J5.

[ci:skip-build] already built successfully in CI
2022-06-11 15:56:39 -07:00
Raymond Hackley bf639fc01d samsung-e7: Move to community (MR 3188)
Like samsung-a{3,5}, samsung-e7 works quite well. Move it to community.

[ci:skip-build] already built successfully in CI
2022-06-11 15:52:18 -07:00
Caleb Connolly 8e5b569bef device-shift-axolotl: depend on qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:27 -07:00
Caleb Connolly faae2121ff device-oneplus-*: depend on qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:26 -07:00
Caleb Connolly 245f6e6911 soc-qcom-sdm845: add qbootctl (MR 3190)
[ci:skip-build] already built successfully in CI
2022-06-11 15:47:26 -07:00
Antoni Aloy Torrens 18f7fcc000 samsung-arubaslim: new device (MR 3186)
[ci:skip-build] already built successfully in CI
2022-06-11 15:44:20 -07:00
Clayton Craft 87d6a4cff4 linux-purism-librem5: upgrade to 5.18.1pureos1 (MR 3214)
Config changes are just from rebasing on purism's defconfig + migrating
to 5.18 config

[ci:skip-build] already built successfully in CI
2022-06-11 15:38:28 -07:00
Martijn Braam f321581f12 device-pine64-pinetab: fix alsa ucm (MR 3218)
[ci:skip-build] already built successfully in CI
2022-06-11 15:35:56 -07:00
Clayton Craft 160e6085be device/main/u-boot-librem5: upgrade to 2022.04_git20220420 (MR 3085)
This also re-enables the auto flashing for u-boot on the L5, but keeps
it disabled on the devkit for now until this u-boot supports the devkit
again.

[ci:skip-build] already built successfully in CI
2022-06-11 15:33:00 -07:00
Raymond Hackley 2159ed63f3 samsung-grandmax: new device (MR 3160) 2022-06-11 18:53:08 +02:00
Oliver Smith 8c933ef9a0 main/postmarketos-welcome: upgrade to 0.4.2 (MR 3208) 2022-06-10 10:01:09 +02:00
Pablo Correa Gómez bec9861ec4 main/postmarketos-welcome: version provides (MR 3208)
There was lately a discussion upstream due to apk 2.12.10 breaking
some packages in aports[1]. The conclusion in IRC is that provides
were designed to be either versioned or have a provider_priority.
Otherwise, the provides will be treated as a "virtual package".
Which is not what we want here.

[1] https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10847
2022-06-10 10:01:04 +02:00
Yassine Oudjana 4da6031e8f community/device-xiaomi-scorpio: disable GPU binning pass (MR 3210)
This is a workaround for a freedreno bug that causes some artifacts
in GNOME and GTK4 apps.
2022-06-09 08:54:47 +02:00
Jack Knightly 4912e44aa3 main/postmarketos-base: modify tm2-touchkey udev rule for midas (MR 3192) 2022-06-09 08:08:41 +02:00
Syboxez Blank 1770b37b60 device: sdm845-{enchilada,fajita,beryllium,axolotl}: rename qcom_smb2 to qcom_pmi8998_charger (MR 3204) 2022-06-08 09:41:31 +02:00
Oliver Smith 5eeb86a419 main/postmarketos-welcome: upgrade to 4.0.0 (MR 3207)
[ci:skip-vercheck]: postmarketos-ui-phosh change in _pmb_recommends
doesn't need a version bump
2022-06-08 01:23:50 +02:00
Minecrell dcfaa6acc2 community/linux-asus-me176c: fix build by updating kernel config
Run "pmbootstrap kconfig migrate asus-me176c" to update the kernel
config for the new Linux version. Otherwise there is an interactive
prompt that times out on BPO (although it succeeds on GitLab CI for
some strange reason).
2022-06-07 19:42:57 +02:00
Oliver Smith 8c4e11ab5b main/postmarketos-release-upgrade: new aport (MR 3197)
[ci:skip-build]: already built successfully in CI
2022-06-07 09:44:48 +02:00
Oliver Smith 8f09708b9b cross/busybox-static-*: upgrade to 1.35.0-r14 2022-06-07 09:41:33 +02:00
Minecrell 62f0d60ef7 community/device-asus-me176c: install vulkan/libva driver if needed (MR 3195)
Add subpackages that automatically cause installation of the Vulkan
and libva driver if packages using them get installed. This reduces
the size of a minimal rootfs but still ensures those are present if
needed.

[ci:skip-build]: already built successfully in CI
2022-06-07 08:22:43 +02:00
Minecrell 635906b9aa community/linux-asus-me176c: upgrade to 5.4.197 (MR 3195)
The new linux-edge / 5.18 kernel will likely not make it in time for
the v22.06 release so let's upgrade the good old 5.4 kernel to the
latest stable release at least.
2022-06-07 08:22:37 +02:00
Oliver Smith 5be7308c82 Revert "main/postmarketos-ui-phosh: add yelp to _pmb_recommends (MR 2832)" (MR 3196)
The patch was meant well. But there are problems with yelp in its
current form in postmarketOS:
* It's practically empty. In the default install, there is only one
  application that has some sort of help text, which is Chatty. But
  when you click on the entry, there is only one line of generic
  information about the app. Not useful for users.
* Yelp is not adapted for small screens, the one line of help text is
  cut off on the PinePhone.

So let's not ship it by default in edge and v22.06 for now.
This reverts commit 5ef50b12f2.

[ci:skip-vercheck]: modifying _pmb_recommends doesn't need a version
bump.
2022-06-07 08:17:19 +02:00
Oliver Smith 5d4d9c80cd CI: test_ui: get arches from pmaports.cfg (MR 3205)
Don't assume that each branch has all arches that pmbootstrap supports,
instead add them to pmaports.cfg and read them from there. This should
allow the test to pass on v22.06.
2022-06-07 08:01:25 +02:00
Martijn Braam bda72ea7fc device-pine64-pinebookpro: fix alsa ucm (MR 3203)
[ci:skip-build]: already built successfully in CI
2022-06-07 07:41:28 +02:00
Martijn Braam 1f3c16ca9c main/postmarketos-ui-gnome: autostart bluetooth service (MR 3202) 2022-06-06 16:27:44 +02:00
Minecrell b714ea8aef device-*: Drop file system modules from deviceinfo_modules_initfs (MR 3166)
File system modules are included by default in postmarketos-mkinitfs
and loaded dynamically when needed.

[ci:skip-build]: already built successfully in CI
2022-06-06 10:11:59 +02:00
Minecrell 16c9892a8f main/postmarketos-mkinitfs: load file system modules dynamically (MR 3166)
At the moment, mkinitfs loads some file system modules always (ext4),
some dynamically (brtfs) and some not at all (f2fs, vfat), expecting
them to be built-in.

To support generic kernels (e.g. from Alpine) properly, use the
partition type detection for both boot and root partition and always
load the necessary modules before mounting.
2022-06-06 10:11:51 +02:00
Minecrell a0a0b369d5 main/postmarketos-mkinitfs: include vfat in initfs by default (MR 3166)
An increasing number of devices relies on the vfat file system in the
initfs (e.g. for UEFI boot). Having to add all the modules required for
it to work to deviceinfo_modules_initfs is annoying and inconsistent,
in particular for the additionally chosen "nls" modules. Since we
already bundle several file systems by default, let's just add vfat
as well to simplify this.

Ideally mkinitfs should detect the file systems chosen at install time
in the future and only include the necessary modules, but until then
this just adds a couple of kilobytes to the initramfs.
2022-06-06 10:11:51 +02:00
Minecrell 0b5a4f9a44 main/postmarketos-mkinitfs: include crc32c_generic module by default (MR 3166)
CRC32C is required for ext4 to work, otherwise mounting the ext4 rootfs
fails with "Cannot load crc32c driver.".
2022-06-06 10:11:46 +02:00
Yassine Oudjana b47461fa75 community/linux-postmarketos-qcom-msm8996: upgrade to 5.18.1 (MR 3183)
[ci:skip-build]: already built successfully in CI
2022-06-06 09:41:48 +02:00
Dylan Van Assche 8848527c22 device-odroid-hc2: enable Samsung JPEG encoder (MR 3191)
Add missing firmware from linux-firmware-other to enable Samsung JPEG hardware encoder
[ci:skip-build]: already built successfully in CI
2022-06-06 09:38:08 +02:00
Dylan Van Assche 7a0e90c2fb linux-odroid-hc2: upgrade to 5.18.1 (MR 3191) 2022-06-06 09:37:48 +02:00
Clayton Craft abae34206b main/osk-sdl: upgrade to 0.67 (MR 3193) 2022-06-06 09:29:21 +02:00
Minecrell fa93f361b5 community/linux-postmarketos-qcom-msm8916: upgrade to 5.18 (MR 3189)
- Update to Linux 5.18
- Fix Bluetooth startup problem
- Upstreamed not so many patches this time
- Even more things I forgot than usual...

pmOS kernel config:
  - Enable BNEP, RFCOMM for extra BT features

Device changes:
  - samsung-j3ltetw/j5/j5x:
    - Now covered by a common device tree include
    - Add proper display driver (no brightness control yet)
    - Hall sensor (except j3ltetw)
    - Touchscreen (only j3ltetw and j5x, j5 is still WIP)
    - Sound/Modem for all of them

New devices:
  - samsung-grandmax (Samsung Galaxy Grand Max)
    - eMMC, SD card, USB, Buttons, WiFi/BT, Vibrator
    - Display
    - Touchscreen
    - Sensors (Accelerometer)
    - Sound/Modem
    - Battery status

[ci:skip-build]: already built successfully in CI
2022-06-06 09:11:12 +02:00
Anton Bambura 7db9fb51cd google-veyron-speedy: new device (MR 3187)
[ci:skip-build] Already built successfuly on CI in MR
2022-06-05 16:25:11 -04:00
interstellartaurusandJenneron 97ac1d9d68 google-veyron-minnie: new device (MR 3187)
Co-authored-by: Jenneron <jenneron@protonmail.com>
2022-06-05 16:23:21 -04:00
Anton Bambura f1ab8f6b2b firmware-google-veyron-brcm: new aport (MR 3187) 2022-06-05 16:23:21 -04:00
Anton Bambura f08c65aa4f google-veyron-jerry: depend on alsa-ucm-conf-google-veyron (MR 3187) 2022-06-05 16:23:21 -04:00
Anton Bambura 32d8b57634 temp/alsa-ucm-conf-google-veyron: new aport (MR 3187) 2022-06-05 16:23:21 -04:00
Anton Bambura 20ce68a947 google-veyron-jerry: add cros-ec to initfs modules (MR 3187) 2022-06-05 16:23:20 -04:00
Anton Bambura 0408920a34 linux-postmarketos-rockchip: rework armv7 config (MR 3187) 2022-06-05 16:23:20 -04:00
Sicelo A. Mhlongo ba3731956d nokia-n900: drop weston subpackage (MR 3174)
Drop the weston config, as it was for fbdev which has not been supported
in weston anymore for a while.

Remove Martijn as Co-Maintainer, as both previous maintainers of the
Nokia N900 stopped maintaining it when the device was briefly dropped
from community.

Co-Authored-By: Oliver Smith <ollieparanoid@postamrketos.org>
[ci:skip-build]: already built successfully in CI
2022-06-03 09:58:08 +02:00
Sicelo A. MhlongoandOliver Smith 90c71ce639 linux-nokia-n900: upgrade to 5.18.1 (MR 3174)
Drop 0002-ARM-dts-n900-remove-rx51-battery.patch, because this wasn't
needed for postmarketOS in the first place. The patch was created for
Maemo Leste as upower quirk initially and they don't carry it anymore
either.

Drop other patches, as they have been upstreamed.

Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
2022-06-03 09:47:41 +02:00
Caleb Connolly e820b4171d community/linux-postmarketos-qcom-sdm845: upgrade to 5.18.0 (MR 3143)
[ci:skip-build]: already built successfully in CI
2022-06-03 09:24:27 +02:00
Pablo Correa Gómez 39607ed347 temp/gtk4.0: upgrade to 4.6.5 (MR 3185)
[ci:skip-build]: already built successfully in CI
2022-06-03 09:14:51 +02:00
Uli Roth 7b10f19396 device-xiaomi-beryllium: Fix touchscreen in initramfs for ebbg panels (MR 3184)
[ci:skip-build] already built successfully in CI
2022-06-02 16:09:02 -07:00
Clayton Craft 2dd5a5ab0f linux-postmarketos-rockchip: upgrade to 5.18 (MR 3170)
Dropped the usb-c patches, because it looks like usb-c charging works
now out of the box on 5.18, and that was the primary reason for me to
include those patches here originally.

[ci:skip-build] already built successfully in CI
2022-06-01 21:43:12 -07:00
jenneron 25b2afb40c google-veyron-jerry: add WiFi/BT firmware (MR 3173)
[ci:skip-build] already built successfully in CI
2022-06-01 21:38:44 -07:00
Newbyte 3346f16f6a samsung-expressatt: change name from S III to Express (MR 3171)
Samsung's website and others call this one Express rather than
S III.

See:

 - https://www.samsung.com/us/business/support/owners/product/galaxy-express-at-t/
 - https://www.gsmarena.com/samsung_galaxy_express_i437-5018.php

[ci:skip-build] already built successfully in CI
2022-06-01 21:35:15 -07:00
Newbyte 924b0c2529 lg-judyp: lge -> lg in dtb name (MR 3180)
In preparation for upstreaming the dts.

[ci:skip-build] already built successfully in CI
2022-06-01 21:31:45 -07:00
Newbyte e2d8e7ae75 lg-judyln: lge -> lg in dtb name (MR 3180)
In preparation for upstreaming the dts.

[ci:skip-build] already built successfully in CI
2022-06-01 21:31:45 -07:00
Newbyte d6380b5493 linux-postmarketos-stericsson: upgrade to 5.18.0 (MR 3172)
[ci:skip-build] already built successfully in CI
2022-06-01 21:25:29 -07:00
Richard Acayan 0a50707c6e google-sargo: new device (MR 3136)
[ci:skip-build] already built successfully in CI
2022-06-01 21:21:26 -07:00
Clayton Craft 879ffd1f54 linux-purism-librem5: upgrade to 5.17.9 (MR 3175)
Patches to work around modem instabilities are now in purism's fork, so
they were dropped.

I ran 'kconfig migrate' on the config, which is why there are a lot of
chnages there.

[ci:skip-build] already built successfully in CI
2022-06-01 21:17:13 -07:00
Anjandev Momi 620082575d add pinephone-keyboard config (MR 3175)
closes #1515

This patch HAS NOT been tested to see if it actually fixes #1515. I do
not have my pinephone keyboard with me and will not till v22.06 is out.
Can someone please test this patch before merging?

Note: this is being merged upstream but needs a refactor of the
Makefile. See:

https://lists.sr.ht/~mil/sxmo-devel/patches/32630

Since we cannot get the refactor of the Makefile out before the next
release, this is the next best thing

[ci:skip-build] already built successfully in CI.
2022-06-01 21:15:09 -07:00
Minecrell ac86b5e760 community/firmware-qcom-db410c: upgrade to 1036.1 (except -wcnss) (MR 3163)
While the newer "Linux board support package" has newer versions for
the "modem" and "venus" firmware, the "wcnss" firmware is actually
older than the one in the previous 1034.2.1 release. To avoid
downgrading it, it is still packaged from the old release in a separate
APKBUILD. (It is probably also better tested than the new release...)

[ci:skip-vercheck]: non-zero pkgrel is intended to match old package
[ci:skip-build] already built successfully in CI
2022-06-01 21:12:32 -07:00
blacksilver 757e0aeb83 samsung-xcover3lte: new device (MR 3139)
[ci:skip-build] already built successfully in CI
2022-06-01 21:04:25 -07:00
Luca Weiss f8e60aa5b3 linux-postmarketos-qcom-msm8974: upgrade to 5.18.1 (MR 3157)
[ci:skip-build] already built successfully in CI
2022-06-01 21:00:59 -07:00
Bart Ribbers adb4801c12 temp/gtk4.0: fix Plasma Mobile virtual keyboard not opening on GTK apps (MR 3181)
pmOS equivalent of https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/34970
2022-06-01 10:42:07 +02:00
Bart Ribbers 1b9afe9116 temp/gtk+3.0: fix Plasma Mobile virtual keyboard not opening on GTK apps (MR 3181)
pmOS equivalent of https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/34970
2022-06-01 10:41:58 +02:00
Johannes Marbach bfb933dec1 main/postmarketos-mkinitfs-hook-debug-shell: add libinput utils (MR 3169)
This adds the libinput program to allow to debug libinput device handling.

[ci:skip-build] already built successfully in CI
2022-05-31 08:36:05 -07:00
Newbyte ed0c3001eb device/community/u-boot-pinebookpro: add maintainer (MR 3135)
Copied from device-pine64-pinebookpro.

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2022-05-31 09:23:34 +02:00
Newbyte 6adf25277d device/community/u-boot-rockpro64: add maintainers (MR 3135)
Copied from device-pine64-rockpro64.
2022-05-31 09:23:24 +02:00
Newbyte 699252ad23 device/main/u-boot-pinephone: add maintainers (MR 3135)
Copied from device-pine64-pinephone.
2022-05-31 09:23:23 +02:00
Newbyte 48ed077169 device/testing/u-boot-lark-freeme-70-2s: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte 9e1c0fc692 device/testing/u-boot-goclever-gcta741l: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte 81faa9986b device/testing/u-boot-rock64: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte a84f8e3e08 device/testing/u-boot-peach-pit: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte 99dc414f21 device/testing/u-boot-peach-pi: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte a7ae892741 device/testing/starqltechn: move from temp (MR 3135) 2022-05-31 09:23:23 +02:00
Newbyte b2efb3916d device/testing/u-boot-snow: move from temp (MR 3135) 2022-05-31 09:23:22 +02:00
Newbyte 512c02b179 device/community/u-boot-pinebookpro: move from temp (MR 3135) 2022-05-31 09:23:22 +02:00
Newbyte 40e937a459 device/community/u-boot-rockpro64: move from temp (MR 3135) 2022-05-31 09:23:22 +02:00
Newbyte 981db6c080 device/main/u-boot-pinephone: move from temp (MR 3135)
Let's clean up temp and move these not-so-temporary U-Boot forks to
the appropriate device subdirectory instead.
2022-05-31 09:23:12 +02:00
Newbyte 538129be5b linux-postmarketos-exynos4: upgrade to 5.18.0 (MR 3168)
Dropped patch was upstreamed.

[ci:skip-build] Already built successfuly on CI in MR
2022-05-30 19:06:29 +02:00
Johannes Marbach aa0f96edb9 main/postmarketos-mkinitfs: Correctly set up udev (MR 3146)
This replaces the previous `udevadm test` hack with a combination of
`udevd`, `udevadm trigger` and `udevadm settle` in order to coldplug all
available devices and make them available for use via libinput / unl0kr.

Relates to: #1411

[ci:skip-build] already built successfully in CI
2022-05-29 12:03:04 -07:00
Luca Weiss 9a18e34f33 device-fairphone-fp2: add gpu flag and sim fix (MR 3158)
GPU has been supported for a while in the mainline-ish kernel, so let
pmbootstrap show UIs like Phosh.

And msm-modem-uim-selection will setup the modem well enough so at least
the primary SIM should work out of the box.

[ci:skip-build] already built successfully in CI
2022-05-29 10:51:48 -07:00
Andreas Kemnade 84b83ddf83 linux-kobo-clara-mainline: upgrade to 5.17.9 (MR 3142)
and while at it, also adding a maintainer

[ci:skip-build] Already built successfuly on CI in MR
2022-05-29 17:57:22 +02:00
magnouvean 16c6179977 motorola-lux: changed arch from armhf to armv7 (MR 3145)
Note from merger (Newbyte):
While this device is aarch64, switching to aarch64 comes with issues
and would need more work than a vendor kernel like this is worth.
Use armv7 for now and hopefully mainline it in the future and switch
to aarch64 then.

[ci:skip-build] Already built successfuly on CI in MR
2022-05-29 17:53:42 +02:00
Newbyte c528aba4ff main/postmarketos-ui-phosh: add karlender to _pmb_recommends (MR 3141)
Karlender fits well into GNOME and fills the lack of a calendar app
in Phosh.

[ci:skip-vercheck]
2022-05-27 19:56:58 +02:00
Oliver Smith cecfb418c0 non-free/sgx-ddk-um: remove (MR 3162)
Only makes sense with mesa-pvr-dri-classic, which was dropped in the
previous commit. See the reasoning there.
2022-05-27 09:22:07 +02:00
Oliver Smith 023f8cc1c3 main/mesa-pvr-dri-classic: remove (MR 3162)
We decided against pvr hacks, quoting craftyguy from issue 1316:

> We discussed this in our team meeting, and ultimately decided that
> supporting pvr in pmaports/pmOS has many of the same problems that
> we saw when trying to support hallium/libhybris, something we
> decided against. For much of the same reasons, we've decided that we
> want to avoid adding the proprietary userspace components required to
> support pvr in pmOS.

No device port is using this package anymore, but we forgot to remove
it. After branching v22.06 I realized that it doesn't build anymore
and as stated in MR 2702, it's unmaintained.

Related: https://builds.sr.ht/~postmarketos/job/767700
2022-05-27 09:11:13 +02:00
Luca Weiss 96f2ad2fac firmware-qcom-adreno: upgrade to 20220509, add a330 & a420 (MR 3149)
The new linux-firmware release contains A330 and A420 firmware, so add
subpackages for those.

[ci:skip-build]: already built successfully in CI
2022-05-25 09:51:07 +02:00
Luca Weiss 7fd08e8693 device/testing/firmware-qcom-adreno-extra: remove (MR 3149)
Adreno 330 and 420 firmware is now part of upstream linux-firmware, and
Adreno 225 subpackage is not used.

So let's remove this package.
2022-05-25 09:50:51 +02:00
Luca Weiss 2d907e4d09 device-sony-sirius: remove linux-firmware-qcom dependency (MR 3140)
Conflicts with firmware-qcom-adreno-a330 and shouldn't be necessary.

[ci:skip-build]: already built successfully in CI
2022-05-25 09:45:58 +02:00
Newbyte fb881276df device-lg-hammerhead: remove linux-firmware-qcom dependency (MR 3140)
Conflicts with firmware-qcom-adreno-a330 and shouldn't be necessary.

See https://gitlab.com/postmarketOS/pmaports/-/issues/1530
2022-05-25 09:45:36 +02:00
Newbyte c4838be834 temp/evince: fix build with Meson 0.60 (MR 3155)
[ci:skip-build]: already built successfully in CI
2022-05-25 09:17:02 +02:00
Luca Weiss b265acd927 cross/gcc4-armv7: regenerate to fix build (MR 3156)
[ci:skip-build]: already built successfully in CI
2022-05-25 09:13:50 +02:00
Luca Weiss e0921b64c3 cross/gcc4-aarch64: regenerate to fix build (MR 3156) 2022-05-25 08:35:45 +02:00
Luca Weiss f8b96744fa temp/gtk+3.0: fix build (MR 3154)
Fix the build failure when built with newer gcc:

../gtk/gtktextsegment.c: In function '_gtk_toggle_segment_new':
../gtk/gtktextsegment.c:433:6: error: array subscript 'GtkTextLineSegment {aka struct _GtkTextLineSegment}[0]' is partly outside array bounds of 'unsigned char[40]' [-Werror=array-bounds]
  433 |   seg->type = on ? &gtk_text_toggle_on_type : &gtk_text_toggle_off_type;
      |      ^~

Patch source: https://gitlab.gnome.org/GNOME/gtk/-/commit/b4e110920aa18e6cc149ccbbfcd90b5143526e6d
2022-05-24 23:50:05 +02:00
Luca Weiss d23fd662f2 main/gcc6: fix build (MR 3153)
Fix the build failure when built with newer gcc:

/home/pmos/build/src/gcc-6.4.0/gcc/config/i386/i386.c: In function 'int function_arg_advance_32(CUMULATIVE_ARGS*, machine_mode, const_tree, long int, long int)':
/home/pmos/build/src/gcc-6.4.0/gcc/config/i386/i386.c:8743:18: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
 8743 |   bool error_p = NULL;
      |                  ^~~~

Patch source: https://svnweb.freebsd.org/ports/head/lang/gcc7/files/patch-gcc_config_i386_i386.c?view=markup&pathrev=545751
2022-05-24 23:48:56 +02:00
Luca Weiss 19809ae262 main/gcc4: fix build (MR 3152)
Fix the build failure when built with newer gcc:

/home/pmos/build/src/gcc-4.9.2/gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   89 |   (this_target_reload->x_spill_indirect_levels)
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/pmos/build/src/gcc-4.9.2/gcc/reload1.c:444:7: note: in expansion of macro 'spill_indirect_levels'
  444 |       spill_indirect_levels++;
      |       ^~~~~~~~~~~~~~~~~~~~~

Patch source: https://github.com/ChrisMacGregor/esp-open-sdk/blob/master/1001-fix-reload1-compile-error.patch
2022-05-24 23:05:24 +02:00
Luca Weiss f41e08f9e9 temp/android-tools: remove (MR 3151)
The bug that caused us to fork this package has been resolved upstream.

Tested by downgrading FP2 bootloader to a version susceptible to this
bug:

~ # ./fastboot-31.0.0p1-r2 flash boot boot.img
fastboot: error: Couldn't parse partition size '0x'.
~ # ./fastboot-31.0.3p1-r4 flash boot boot.img
Sending 'boot' (11666 KB)                          OKAY [  0.367s]
Writing 'boot'                                     OKAY [  0.276s]
Finished. Total time: 0.670s
2022-05-24 21:52:30 +02:00
Bart Ribbers 3e8e7b9c40 channels.cfg: add initial v22.06 branch (MR 3150) 2022-05-24 09:30:30 +02:00
2046 changed files with 233947 additions and 53541 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh -e
# Description: run apkbuild-lint on modified APKBUILDs
# Options: native
# Use 'native' because it requires git commit history.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi
# Wrap pmbootstrap to use this repository for --aports
pmaports="$(cd $(dirname $0)/..; pwd -P)"
_pmbootstrap="$(command -v pmbootstrap)"
pmbootstrap() {
"$_pmbootstrap" --aports="$pmaports" "$@"
}
.ci/lib/apkbuild_linting.py
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
+1
View File
@@ -0,0 +1 @@
lib/build_changed_aports.sh
-8
View File
@@ -1,8 +0,0 @@
#!/bin/sh -e
# Convenience wrapper for short arch-specific build jobs in .gitlab-ci.yml
export PYTHONUNBUFFERED=1
JOB_ARCH="${CI_JOB_NAME#build-}"
set -x
su pmos -c ".ci/build_changed_aports.py $JOB_ARCH"
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh -e
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
# Description: check pkgver/pkgrel bumps, amount of changed pkgs etc
# Options: native
# Use 'native' because it requires git commit history.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
# In .gitlab-ci.yml currently .ci/pytest.sh runs before this and
# already downloads and runs install_pmbootstrap.sh.
if ! [ -e install_pmbootstrap.sh ]; then
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh
fi
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi
.ci/lib/check_changed_aports_versions.py
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh -e
# Description: editorconfig-checker: lint for trailing whitespaces etc.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add \
editorconfig-checker
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
ec
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh -e
# Description: lint CI related python scripts/tests
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add py3-flake8
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
# shellcheck disable=SC2046
flake8 --ignore E501,F401,E722,W504,W605 $(find .ci -name '*.py')
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh -e
# Description: check various bad patterns with grep
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add grep
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
# Find CHANGEMEs in APKBUILDs
if grep -qr '(CHANGEME!)' *; then
echo "ERROR: Please replace '(CHANGEME!)' in the following files:"
grep --color=always -r '(CHANGEME!)' *
exit 1
fi
# DTBs installed to /usr/share/db
# FIXME: doesn't pass currently, fix it and enable it afterwards
# if grep -r 'INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb'; then
# echo 'Please do not install dtbs to /usr/share/dtb!'
# echo 'Unless you have a good reason not to, please put them in /boot/dtbs'
# exit 1
# fi
Executable
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh -e
# Description: check all kernel configs with 'pmbootstrap kconfig check'
# Options: native
# Use 'native' because it requires running pmbootstrap.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi
# Wrap pmbootstrap to use this repository for --aports
pmaports="$(cd $(dirname $0)/..; pwd -P)"
_pmbootstrap="$(command -v pmbootstrap)"
pmbootstrap() {
"$_pmbootstrap" --aports="$pmaports" "$@"
}
set -x
pmbootstrap kconfig check
+1
View File
@@ -0,0 +1 @@
../testcases/add_pmbootstrap_to_import_path
File renamed without changes.
@@ -7,7 +7,7 @@ import sys
import common
# pmbootstrap
import testcases.add_pmbootstrap_to_import_path
import add_pmbootstrap_to_import_path
import pmb.parse
import pmb.parse._apkbuild
import pmb.helpers.pmaports
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh -e
# Description: build modified packages for this architecture
# Options: native slow
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi
export PYTHONUNBUFFERED=1
# Get the architecture from the symlink we are running
arch="$(echo "$0" | cut -d '-' -f 2 | cut -d '.' -f 1)"
set -x
.ci/lib/build_changed_aports.py "$arch"
@@ -11,7 +11,7 @@ import subprocess
import common
# pmbootstrap
import testcases.add_pmbootstrap_to_import_path # noqa
import add_pmbootstrap_to_import_path # noqa
import pmb.parse
import pmb.parse.version
import pmb.helpers.logging
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2021 Oliver Smith
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
import argparse
@@ -13,7 +13,7 @@ def get_devices():
""":returns: list of all devices"""
ret = []
pmaports = (os.path.realpath(os.path.join(os.path.dirname(__file__) +
"/..")))
"/../..")))
for path in glob.glob(pmaports + "/device/*/device-*/"):
device = os.path.dirname(path).split("device-", 1)[1]
@@ -110,7 +110,7 @@ def main():
print("")
print("Now it's time to add some documentation:")
print("1) Create a device specific wiki page as described here:")
print(" <https://wiki.postmarketos.org/wiki/Help:Device_Page>")
print(" https://wiki.postmarketos.org/wiki/Help:Device_Page")
print("2) Set 'booting = yes' in the infobox of your device page.")
print("3) Run these tests again with an empty commit in your MR:")
print(" $ git commit --allow-empty -m 'run tests again'")
+1 -1
View File
@@ -17,7 +17,7 @@ def get_pmaports_dir():
global cache
if "pmaports_dir" in cache:
return cache["pmaports_dir"]
ret = os.path.realpath(os.path.join(os.path.dirname(__file__) + "/.."))
ret = os.path.realpath(os.path.join(os.path.dirname(__file__) + "/../.."))
cache["pmaports_dir"] = ret
return ret
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh -e
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
if ! mount | grep -q /proc/sys/fs/binfmt_misc; then
echo "Mounting binfmt_misc"
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
fi
if id "build" > /dev/null 2>&1; then
echo "User 'build' exists already"
else
echo "Creating build user"
adduser -D build
chown -R build:build .
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
fi
File renamed without changes.
+15 -4
View File
@@ -1,10 +1,21 @@
#!/bin/sh -e
# Copyright 2021 Oliver Smith
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
# Description: lint with various python tests
# Options: native
# Use 'native' because it requires pmbootstrap.
# https://postmarketos.org/pmb-ci
# Require pmbootstrap
if ! command -v pmbootstrap > /dev/null; then
echo "ERROR: pmbootstrap needs to be installed."
if [ "$(id -u)" = 0 ]; then
set -x
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh pytest
exec su "${TESTUSER:-pmos}" -c "sh -e $0"
fi
# Require pytest to be installed on the host system
if [ -z "$(command -v pytest)" ]; then
echo "ERROR: pytest command not found, make sure it is in your PATH."
exit 1
fi
+11 -13
View File
@@ -1,16 +1,15 @@
#!/bin/sh -e
# Copyright 2021 Oliver Smith
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
# Description: lint all shell scripts
# https://postmarketos.org/pmb-ci
set -e
DIR="$(cd "$(dirname "$0")" && pwd -P)"
cd "$DIR/.."
DIR="$(cd "$(dirname "$0")/.." && pwd -P)"
# Find CHANGEMEs in APKBUILDs
if grep -qr '(CHANGEME!)' *; then
echo "ERROR: Please replace '(CHANGEME!)' in the following files:"
grep --color=always -r '(CHANGEME!)' *
exit 1
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add shellcheck
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
# Shell: shellcheck
@@ -24,12 +23,10 @@ sh_files="
./main/postmarketos-mkinitfs-hook-debug-shell/20-debug-shell.sh
./main/postmarketos-mkinitfs-hook-netboot/netboot.sh
./main/postmarketos-update-kernel/update-kernel.sh
./main/swclock-offset/swclock-offset-boot.sh
./main/swclock-offset/swclock-offset-shutdown.sh
./main/ttyescape/*.post-install
./main/unl0kr/unlock.sh
./main/msm-firmware-loader/*.sh
./main/msm-firmware-loader/*.post-install
./device/community/soc-qcom-sdm845/call_audio_idle_suspend_workaround.sh
$(find . -path './main/postmarketos-ui-*/*.sh')
$(find . -path './main/postmarketos-ui-*/*.pre-install')
@@ -45,8 +42,9 @@ sh_files="
$(find . -path '.ci/*.sh')
"
for file in $sh_files; do
echo "Test with shellcheck: $file"
cd "$DIR/../$(dirname "$file")"
cd "$DIR/$(dirname "$file")"
shellcheck -e SC1008 -x "$(basename "$file")"
done
+6 -8
View File
@@ -16,20 +16,18 @@ def device_dependency_check(apkbuild, path):
""" Raise an error if a device package has a dependency that is not allowed
(e.g. because it should be in a subpackage instead). """
# asus-me176c: without this, the device will simply run the broken ACPI
# DSDT table, so we might as well update it. See pmaports!699.
firmware_ok = {"device-asus-me176c": ["firmware-asus-me176c-acpi"]}
pkgname = apkbuild["pkgname"]
for depend in apkbuild["depends"]:
if depend == "linux-firmware-none":
continue
if (depend.startswith("firmware-") or
depend.startswith("linux-firmware")):
if pkgname in firmware_ok and depend in firmware_ok[pkgname]:
continue
raise RuntimeError("Firmware package '" + depend + "' found in"
" depends of " + path + ". These go into"
" subpackages now, see"
" <https://postmarketos.org/devicepkg>.")
if depend == "mesa-dri-gallium":
raise RuntimeError(f"{path}: mesa-dri-gallium shouldn't be in"
" depends anymore (see pmaports!3478)")
def test_aports_device(args):
@@ -83,7 +81,7 @@ def test_aports_device_kernel(args):
# Parse kernels from depends
kernels_depends = []
for depend in apkbuild["depends"]:
if not depend.startswith("linux-"):
if not depend.startswith("linux-") or depend.startswith("linux-firmware-"):
continue
kernels_depends.append(depend)
+29 -8
View File
@@ -3,9 +3,10 @@
# SPDX-License-Identifier: GPL-3.0-or-later
import glob
import pytest
import sys
import os
import pytest
import re
import sys
import add_pmbootstrap_to_import_path
import pmb.parse
@@ -16,12 +17,15 @@ def deviceinfo_obsolete(info):
Test for obsolete options used in the deviceinfo file. They must still be
defined in pmbootstrap's config/__init__.py.
"""
obsolete_options = ["weston_pixman_type"]
obsolete_options = [
"usb_rndis_function",
"weston_pixman_type",
]
for option in obsolete_options:
if info[option]:
raise RuntimeError("option '" + option + "' is obsolete, please"
" remove it (reasons for removal are at"
" <https://postmarketos.org/deviceinfo>)")
if option in info and info[option]:
raise RuntimeError(f"option {option} is obsolete, please rename"
" or remove it (see reasons for removal of at"
" https://postmarketos.org/deviceinfo)")
def test_deviceinfo(args):
@@ -31,6 +35,8 @@ def test_deviceinfo(args):
# Iterate over all devices
last_exception = None
count = 0
pattern = re.compile("^deviceinfo_[a-zA-Z0-9_]*=\".*\"$")
for folder in glob.glob(args.aports + "/device/*/device-*"):
device = folder[len(args.aports):].split("-", 1)[1]
@@ -39,11 +45,26 @@ def test_deviceinfo(args):
f.close()
try:
# variable can not be empty
for line in lines:
# Require space after # for comments
if line.startswith("#") and not line.startswith("# "):
raise RuntimeError("Comment style: please change '#' to"
f" '# ': {line}")
# Skip empty lines and comments
if not line or line.startswith("# "):
continue
# Variable can not be empty
if '=""' in line:
raise RuntimeError("Please remove the empty variable: " + line)
# Check line against regex (can't use multiple lines etc.)
if not pattern.match(line) or line.endswith("\\\""):
raise RuntimeError("Line looks invalid, maybe missing"
" quotes/multi-line string/comment next"
f" to line instead of above? {line}")
# Successful deviceinfo parsing / obsolete options
info = pmb.parse.deviceinfo(args, device)
deviceinfo_obsolete(info)
+7
View File
@@ -15,8 +15,10 @@ def test_aports_firmware(args):
"""
excluded = [
"firmware-motorola-ali", # Depends on firmware-qcom-adreno-a530
"firmware-motorola-potter", # Depends on soc-qcom-msm8916-ucm
"firmware-oneplus-msm8998", # Depends on soc-qcom-sdm845-nonfree-firmware
"firmware-xiaomi-sagit", # Depends on soc-qcom-sdm845-nonfree-firmware
"firmware-samsung-baffinlite", # Depends on firmware-aosp-broadcom-wlan
"firmware-samsung-crespo", # Depends on firmware-aosp-broadcom-wlan
"firmware-samsung-maguro", # Depends on firmware-aosp-broadcom-wlan
@@ -41,3 +43,8 @@ def test_aports_firmware(args):
raise RuntimeError(f"{aport_name}: \"!tracedeps\" missing in"
" options= line. The tracedeps option is superfluous"
" for firmware packages.")
if "noarch" in apkbuild["arch"]:
raise RuntimeError(f"{aport_name}: \"arch\" must not be \"noarch\"!"
" Please limit this firmware package to the"
" required architectures only!")
+4 -4
View File
@@ -34,9 +34,9 @@ def test_aports_kernel(args):
" pmbootstrap installs cross-compiler"
" automatically.")
# nftables support in kernels used by main and community devices
# check some options only for main and community devices
for dir in ["main", "device/main", "device/community"]:
if path.startswith(f"{args.aports}/{dir}"):
assert pmb.parse.kconfig.check(args,
aport_name.replace("linux-", ""),
force_nftables_check=True)
if "pmb:kconfigcheck-community" not in apkbuild["options"]:
raise RuntimeError(f"{aport_name}: \"pmb:kconfigcheck-community\" missing in"
" options= line, required for all community/main devices.")
+87
View File
@@ -0,0 +1,87 @@
#!/usr/bin/env python3
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
import glob
import logging
import os
import pytest
import sys
import add_pmbootstrap_to_import_path
import pmb.parse
import pmb.parse._apkbuild
def apkbuild_check_provides(path, apkbuild, version, pkgname, subpkgname=None):
"""
Verify that a package or subpackage is using provides correctly.
:param path: to the APKBUILD for the error message
:param apkbuild: either the full return of pmb.parse.apkbuild() or a
subpackage of it (apkbuild["subpackages"][$subpkgname])
:param version: like 1.0.0-r3 so we can check against it
:param pkgname: package name
:param subpkgname: subpackage name, if we are looking at a subpackage
:returns: list of error strings
"""
name = pkgname
if subpkgname:
name = f"{pkgname}:{subpkgname}"
logging.info(f"{name}: checking provides")
ret = []
if not apkbuild["provides"]:
return ret
for provide in apkbuild["provides"]:
# Having provides entries without version is valid if the
# provider_priorty is also set (pma#1766)
if apkbuild["provider_priority"]:
continue
# Otherwise the version =$pkgver-r$pkgrel needs to be set. pmbootstrap
# already replaces the variables, so we check against the inserted
# values here.
if not provide.endswith(f"={version}"):
provide_no_ver = provide.split("=", 1)[0]
error = f"error in {path}:\n"
if subpkgname:
error += f"in subpackage:\n {subpkgname}\n"
else:
error += f"in package:\n {pkgname}\n"
error += f"broken provides entry:\n {provide_no_ver}\n"
error += "\n"
error += "This provides entry needs to be changed to"
error += f" '{provide_no_ver}=$pkgver-r$pkgrel'"
error += " (do not replace the variables, without '').\n"
error += "\n"
error += "If you know what you are doing and didn't add the"
error += " version on purpose, you also need to set a"
error += " provider_priority (pma#1766).\n"
error += "Reference:"
error += " https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#provides"
ret += [error]
return ret
def test_provides(args):
errors = []
for path in glob.iglob(f"{args.aports}/**/APKBUILD", recursive=True):
apkbuild = pmb.parse.apkbuild(path)
pkgname = apkbuild["pkgname"]
version = f"{apkbuild['pkgver']}-r{apkbuild['pkgrel']}"
path_rel = os.path.relpath(path, args.aports)
errors += apkbuild_check_provides(path_rel, apkbuild, version, pkgname)
for subpkg, subpkg_data in apkbuild["subpackages"].items():
if not subpkg_data:
# default packaging function like -doc
continue
errors += apkbuild_check_provides(path_rel, subpkg_data, version,
pkgname, subpkg)
if errors:
for error in errors:
logging.error(error)
raise RuntimeError(f"test_provides failed with {len(errors)} errors")
+152
View File
@@ -0,0 +1,152 @@
#!/usr/bin/env python3
# Copyright 2022 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
# Various checks on source= in the APKBUILDs
import glob
import logging
import os
import pytest
import sys
import add_pmbootstrap_to_import_path
import pmb.parse
import pmb.parse._apkbuild
import pmb.parse.apkindex
import pmb.helpers.repo
def parse_source_from_checksums(args, apkbuild_path):
"""
Read the APKBUILD file and parse source files from the checksums at the
bottom. This has always the same format, even if $source is built with hard
to parse shell code (like in postmarketos-base).
:param apkbuild_path: full path to the APKBUILD
:returns: dict of parsed "source" filenames and checksums, e.g.:
{"first.patch": "b4dc4f3…",
"second.patch": "b4dc4f3…"}
"""
start = 'sha512sums="'
in_block = False
ret = {}
with open(apkbuild_path, encoding="utf-8") as handle:
for line in handle.readlines():
# Find start
if not in_block:
if line.startswith(start):
in_block = True
else:
continue
# sha512sums may have lines without checksums:
# https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/73
if " " not in line:
continue
try:
checksum, filename = line.rstrip().split(" ", 2)
except ValueError:
raise ValueError("Failed to parse checksums. Try to delete the"
" checksums and generate them again with"
f" 'pmbootstrap checksum': {apkbuild_path}")
# Cut off 'sha512sums="' if the first checksum is in that line
if checksum.startswith(start):
checksum = checksum[len(start):]
# Find end
if filename.endswith('"'):
filename = filename[:-1]
ret[filename] = checksum
return ret
def test_aports_unreferenced_files(args):
"""
Raise an error if an unreferenced file is found
"""
for apkbuild_path in glob.iglob(args.aports + "/**/APKBUILD", recursive=True):
# pmbootstrap parser has some issues with complicated APKBUILDs, skip those.
if apkbuild_path.startswith(args.aports + "/cross/"):
continue
apkbuild = pmb.parse.apkbuild(apkbuild_path)
sources_chk = parse_source_from_checksums(args, apkbuild_path)
# Collect files from subpackages
subpackage_installs = []
subpackage_triggers = []
if apkbuild["subpackages"]:
for subpackage in apkbuild["subpackages"].values():
if not subpackage:
continue
subpackage_installs += subpackage.get("install", [])
subpackage_triggers += subpackage.get("triggers", [])
# Collect trigger files
trigger_sources = []
for trigger in apkbuild["triggers"] + subpackage_triggers:
trigger_sources.append(trigger.split("=")[0])
dirname = os.path.dirname(apkbuild_path)
for file in glob.iglob(dirname + "/**", recursive=True):
rel_file_path = os.path.relpath(file, dirname)
# Skip APKBUILDs and directories
if rel_file_path == "APKBUILD" or os.path.isdir(file):
continue
if os.path.basename(rel_file_path) not in sources_chk \
and rel_file_path not in apkbuild["install"] \
and rel_file_path not in subpackage_installs \
and rel_file_path not in trigger_sources:
raise RuntimeError(f"{apkbuild_path}: found unreferenced file: {rel_file_path}")
def test_distfiles_conflict(args):
"""
Make sure that each filename mentioned in any source= of any APKBUILD
always has the same checksum. This is important because apk caches
downloaded source files in a flat distfiles directory. So if two APKBUILDs
both download a file with the same filename but different checksum, and the
user builds both after each other, abuild will fail on the second build
with a checksum error.
"""
source_all = {}
for apkbuild_path in glob.iglob(f"{args.aports}/**/APKBUILD", recursive=True):
source = parse_source_from_checksums(args, apkbuild_path)
dir_path = os.path.dirname(apkbuild_path)
apkbuild_rel = os.path.relpath(apkbuild_path, args.aports)
for filename, checksum in source.items():
# Files bundled with the APKBUILD don't get copied to the distfiles
# cache, so not relevant for this check. Use glob.glob here and not
# iglob, because we don't want an iterator.
if glob.glob(f"{dir_path}/**/{filename}", recursive=True):
continue
# First time seeing this file
if filename not in source_all:
source_all[filename] = {"checksum": checksum,
"apkbuild_rel": apkbuild_rel}
continue
# Saw this file already with same checksum
if checksum == source_all[filename]["checksum"]:
continue
# Saw this file already with different checksum
logging.error("")
logging.error(f"ERROR: the source file '{filename}' has different"
" checksums in the following files:")
logging.error(f"- {source_all[filename]['apkbuild_rel']}:")
logging.error(f" {source_all[filename]['checksum']}")
logging.error(f"- {apkbuild_rel}:")
logging.error(f" {checksum}")
logging.error("")
logging.error("Fix this by setting a different target filename in"
" the package you modified:")
logging.error("https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#source")
logging.error("")
raise RuntimeError(f"Conflict with source file '{filename}'")
+3 -1
View File
@@ -15,7 +15,9 @@ def test_aports_ui(args):
"""
Raise an error if package in _pmb_recommends is not found
"""
for arch in pmb.config.build_device_architectures:
pmaports_cfg = pmb.config.pmaports.read_config(args)
for arch in pmaports_cfg["supported_arches"].split(","):
for path in glob.iglob(args.aports + "/main/postmarketos-ui-*/APKBUILD"):
apkbuild = pmb.parse.apkbuild(path)
# Skip if arch isn't enabled
-97
View File
@@ -1,97 +0,0 @@
#!/usr/bin/env python3
# Copyright 2021 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later
import glob
import pytest
import sys
import os
import add_pmbootstrap_to_import_path
import pmb.parse
import pmb.parse._apkbuild
import pmb.parse.apkindex
import pmb.helpers.repo
def parse_source_from_checksums(args, apkbuild_path):
"""
Read the APKBUILD file and parse source files from the checksums at the
bottom. This has always the same format, even if $source is built with hard
to parse shell code (like in postmarketos-base).
:param apkbuild_path: full path to the APKBUILD
:returns: list of parsed "source" files, e.g.:
["first.patch", "second.patch"]
"""
start = 'sha512sums="'
in_block = False
ret = []
with open(apkbuild_path, encoding="utf-8") as handle:
for line in handle.readlines():
# Find start
if not in_block:
if line.startswith(start):
in_block = True
else:
continue
# sha512sums may have lines without checksums:
# https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/73
if " " not in line:
continue
try:
_, filename = line.rstrip().split(" ", 2)
except ValueError:
raise ValueError("Failed to parse checksums. Try to delete the"
" checksums and generate them again with"
f" 'pmbootstrap checksum': {apkbuild_path}")
# Find end
if filename.endswith('"'):
ret += [filename[:-1]]
break
ret += [filename]
return ret
def test_aports_unreferenced_files(args):
"""
Raise an error if an unreferenced file is found
"""
for apkbuild_path in glob.iglob(args.aports + "/**/APKBUILD", recursive=True):
apkbuild = pmb.parse.apkbuild(apkbuild_path)
sources_chk = parse_source_from_checksums(args, apkbuild_path)
# Collect install files from subpackages
subpackage_installs = []
if apkbuild["subpackages"]:
for subpackage in apkbuild["subpackages"].values():
if not subpackage:
continue
try:
subpackage_installs += subpackage["install"]
except KeyError:
continue
# Collect trigger files
trigger_sources = []
if apkbuild["triggers"]:
for trigger in apkbuild["triggers"]:
trigger_sources.append(trigger.split("=")[0])
dirname = os.path.dirname(apkbuild_path)
for file in glob.iglob(dirname + "/**", recursive=True):
rel_file_path = os.path.relpath(file, dirname)
# Skip APKBUILDs and directories
if rel_file_path == "APKBUILD" or os.path.isdir(file):
continue
if os.path.basename(rel_file_path) not in sources_chk \
and rel_file_path not in apkbuild["install"] \
and rel_file_path not in subpackage_installs \
and rel_file_path not in trigger_sources:
raise RuntimeError(f"{apkbuild_path}: found unreferenced file: {rel_file_path}")
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh -e
# Description: verify devices are documented in the wiki
# Options: native
# Run natively so we don't need to set up a chroot, python3 is the only dep.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add \
python3
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
.ci/lib/check_devices_in_wiki.py --booting
+4
View File
@@ -0,0 +1,4 @@
{
"Version": "2.6.0",
"SpacesAftertabs": true
}
+2 -2
View File
@@ -7,8 +7,8 @@
# Top-most EditorConfig file.
root = true
[**/APKBUILD]
[{**.{md,ini,sh,rules,nft},**/APKBUILD}]
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true
-1
View File
@@ -20,7 +20,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
+45 -41
View File
@@ -3,7 +3,7 @@
# global settings
image: alpine:latest
after_script:
- .ci/move_logs.sh $CI_PROJECT_DIR
- .ci/lib/move_logs.sh $CI_PROJECT_DIR
stages:
- lint
- build
@@ -31,13 +31,12 @@ wiki:
- merge_requests
changes:
- device/*/device-*/*
before_script:
- apk -q add python3
script:
- .ci/check_devices_in_wiki.py --booting
- .ci/lib/gitlab_prepare_ci.sh
- .ci/wiki.sh
# testcases linting
testcases-linting:
flake8:
stage: lint
<<: *only-default
only:
@@ -49,28 +48,35 @@ testcases-linting:
before_script:
- apk -q add py-flake8
script:
- flake8 --ignore E501,F401,E722,W504,W605
- .ci/lib/gitlab_prepare_ci.sh
- .ci/flake8.sh
# shellcheck
shellcheck:
# shellcheck and various grep checks
shellcheck-grep:
stage: lint
<<: *only-default
image: alpine:edge
before_script:
- apk -q add shellcheck
script:
- .ci/lib/gitlab_prepare_ci.sh
- .ci/shellcheck.sh
- .ci/grep.sh
# aports checks (generic)
aports-static:
editor-config:
stage: lint
<<: *only-default
before_script:
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh pytest
image: alpine:edge
script:
- su pmos -c ".ci/run_testcases.sh"
- su pmos -c ".ci/check_changed_aports_versions.py"
- .ci/lib/gitlab_prepare_ci.sh
- .ci/ec.sh
# aports checks (generic)
pytest-commits:
stage: lint
<<: *only-default
script:
- .ci/lib/gitlab_prepare_ci.sh
- .ci/pytest.sh
- .ci/commits.sh
artifacts:
when: on_failure
paths:
@@ -79,26 +85,12 @@ aports-static:
- pmbootstrap.cfg
expire_in: 1 week
distfile-check:
stage: lint
<<: *only-default
before_script:
- apk -q add make findutils
- wget "https://gitlab.com/postmarketOS/ci-common/-/archive/master/ci-common-master.tar.bz2"
- tar -xf ci-common-master.tar.bz2
- mv ci-common-master/distfile-check/*.sh ci-common-master/distfile-check/Makefile .
- rm -r ci-common-master ci-common-master.tar.bz2
script:
- make -j999
# APKBUILD linting
aport-lint:
stage: lint
before_script:
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh
script:
- su pmos -c ".ci/apkbuild-linting.py"
- .ci/lib/gitlab_prepare_ci.sh
- .ci/apkbuild-lint.sh
only:
- merge_requests
allow_failure: true
@@ -113,11 +105,9 @@ kernel-kconfig:
changes:
- device/*/linux-*/config-*
- main/linux-*/config-*
before_script:
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh pytest
script:
- su pmos -c "pmbootstrap kconfig check"
- .ci/lib/gitlab_prepare_ci.sh
- .ci/kconfig.sh
# MR settings
# (Checks for "Allow commits from members who can merge to the target branch")
@@ -136,27 +126,41 @@ mr-settings:
stage: build
<<: *only-default
before_script:
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh
script:
- .ci/build.sh
- .ci/lib/gitlab_prepare_ci.sh
after_script:
- cp -r /home/pmos/.local/var/pmbootstrap/packages/ packages/ || true
artifacts:
expire_in: 1 week
paths:
- packages/
timeout: 10 h
build-x86_64:
extends: .build
script:
- .ci/build-x86_64.sh
build-x86:
extends: .build
script:
- .ci/build-x86.sh
build-aarch64:
extends: .build
script:
- .ci/build-aarch64.sh
build-armv7:
extends: .build
script:
- .ci/build-armv7.sh
build-armhf:
extends: .build
script:
- .ci/build-armhf.sh
build-riscv64:
extends: .build
script:
- .ci/build-riscv64.sh
+80 -12
View File
@@ -1,15 +1,83 @@
# https://docs.gitlab.com/ee/user/project/code_owners.html
device/*/*-pine64-pinephone/ @craftyguy @milesalan @bshah @proycon @anjandev @StacyHarper
device/*/*-purism-librem5/ @craftyguy @bshah
main/osk-sdl/ @craftyguy
main/mesa-pvr-dri-classic/ @xc-racer99
main/postmarketos-ui-plasma-mobile/ @bshah
temp/u-boot-librem5/ @craftyguy @bshah
device/community/*-qcom-sdm845 @calebccff @joelselvaraj
device/community/device-oneplus-enchilada @calebccff
device/community/device-oneplus-fajita @calebccff
main/ttyescape @calebccff
device/community/*-xiaomi-berrylium @joelselvaraj
device/*/*-htc-golfu/ @Newbyte
device/*/*-pine64-pinephone/ @craftyguy @milesalan @bshah @proycon @anjandev @StacyHarper
device/*/*-htc-m8qlul/ @Newbyte
device/*/*-purism-librem5/ @craftyguy @bshah
device/*/device-lg-judyln/ @Newbyte
device/*/device-samsung-m0/ @Newbyte
device/*/linux-postmarketos-exynos4/ @Newbyte
device/*/linux-postmarketos-msm8939/ @Newbyte
device/*/linux-postmarketos-stericsson/ @Newbyte
device/*/*-qcom-sdm845/ @sdm845-mainline
device/*/*-xiaomi-berrylium/ @joelselvaraj
device/*/device-oneplus-enchilada/ @calebccff
device/*/device-oneplus-fajita/ @calebccff
device/*/firmware-oneplus-sdm845/ @calebccff
device/*/device-shift-axolotl/ @amartinz @calebccff @dylanvanassche
device/*/*-lenovo-a6010/ @jenneron
device/*/*-lenovo-a6000/ @jenneron
device/*/device-microsoft-surface-rt/ @jenneron
device/*/device-google-fennel/ @jenneron
device/*/device-google-veyron-minnie/ @jenneron
device/*/device-google-burnet/ @jenneron
device/*/device-google-elm/ @jenneron
device/*/device-google-nyan-big/ @jenneron
device/*/device-google-peach-pi/ @jenneron
device/*/device-google-veyron-speedy/ @jenneron
device/*/linux-google-veyron/ @jenneron
device/*/u-boot-peach-pi/ @jenneron
device/*/device-google-cozmo/ @jenneron
device/*/u-boot-veyron-speedy/ @jenneron
device/*/device-google-juniper/ @jenneron @binarycraft
device/*/u-boot-peach-pit/ @jenneron
device/*/device-google-damu/ @jenneron
device/*/u-boot-nyan-4gb/ @jenneron
device/*/device-google-kenzo/ @jenneron
device/*/device-google-kodama/ @jenneron
device/*/u-boot-snow/ @jenneron
device/*/device-google-kevin/ @jenneron
device/*/linux-postmarketos-exynos5/ @jenneron @Grimler
device/*/device-google-krane/ @jenneron
device/*/soc-mediatek-mt8183/ @jenneron
device/*/u-boot-veyron-minnie/ @jenneron
device/*/device-google-fennel14/ @jenneron
device/*/linux-google-nyan/ @jenneron
device/*/device-google-willow/ @jenneron
device/*/linux-postmarketos-mediatek-mt8173/ @jenneron
device/*/linux-postmarketos-mediatek-mt8183/ @jenneron @binarycraft
device/*/device-google-nyan-blaze/ @jenneron
device/*/firmware-powervr-gx6250/ @jenneron
device/*/device-google-hana/ @jenneron
device/*/device-google-snow/ @jenneron
device/*/device-google-kappa/ @jenneron
device/*/u-boot-nyan-2gb/ @jenneron
device/*/device-google-veyron-jerry/ @jenneron
device/*/device-google-kakadu/ @jenneron
device/*/firmware-google-veyron-brcm/ @jenneron
device/*/device-google-peach-pit/ @jenneron
device/*/device-lg-judyp/ @jenneron
device/*/device-asus-tf201/ @clamor95
device/*/device-asus-tf300t/ @clamor95
device/*/device-asus-tf300tg/ @clamor95
device/*/device-asus-tf700t/ @clamor95
device/*/device-lg-p895/ @clamor95
device/*/firmware-asus-transformer/ @clamor95 @jenneron
device/*/firmware-lg-x3/ @clamor95
device/*/linux-postmarketos-grate/ @clamor95 @jenneron
device/*/device-samsung-chagallwifi @Grimler
device/*/device-odroid-xu4 @Grimler
device/*/device-samsung-klimtlte @Grimler
device/*/linux-samsung-klimtlte @Grimler
device/*/firmware-odroid-xu4 @Grimler
device/*/linux-samsung-chagallwifi @Grimler
# vim: ts=4 sw=4 et
main/postmarketos-update-depthcharge-kernel/ @jenneron
main/osk-sdl/ @craftyguy
main/postmarketos-ui-plasma-mobile/ @bshah
main/ttyescape @calebccff
temp/u-boot-librem5/ @craftyguy @bshah
temp/alsa-ucm-conf-google-kukui/ @jenneron @binarycraft
temp/alsa-ucm-conf-google-gru/ @jenneron
# vim: ts=8 sw=4 et
+1 -1
View File
@@ -5,4 +5,4 @@ Helpful resources:
* [APKBUILD reference](https://wiki.alpinelinux.org/wiki/APKBUILD_Reference)
* [Alpine Linux aports](https://gitlab.alpinelinux.org/alpine/aports/)
* [Alpine Linux package search](https://pkgs.alpinelinux.org/packages)
* [postmarketOS package search](https://pkgs.postmarketos.org/packages)
* [postmarketOS package search](https://pkgs.postmarketos.org/packages)
+13 -1
View File
@@ -8,8 +8,20 @@ branch_pmaports=master
branch_aports=master
mirrordir_alpine=edge
[v21.12]
[v22.12]
description=Latest release / Recommended for best stability
branch_pmaports=v22.12
branch_aports=3.17-stable
mirrordir_alpine=v3.17
[v22.06]
description=Old release (supported until 2023-01-18)
branch_pmaports=v22.06
branch_aports=3.16-stable
mirrordir_alpine=v3.16
[v21.12]
description=Old release (unsupported)
branch_pmaports=v21.12
branch_aports=3.15-stable
mirrordir_alpine=v3.15
+111 -28
View File
@@ -2,28 +2,33 @@
# Generator: pmbootstrap aportgen binutils-aarch64
# Based on: main/binutils
CTARGET_ARCH=aarch64
CTARGET="$(arch_to_hostspec $CTARGET_ARCH)"
pkgname=binutils-aarch64
pkgver=2.38
pkgrel=2
pkgver=2.39
pkgrel=3
pkgdesc="Tools necessary to build programs for aarch64 targets"
url="https://www.gnu.org/software/binutils/"
makedepends="gettext libtool autoconf automake bison texinfo"
makedepends_build="bison flex texinfo"
makedepends_host="zlib-dev"
makedepends="$makedepends_build $makedepends_host"
arch="x86_64"
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages="binutils-dev binutils-doc"
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
binutils-ld-fix-static-linking.patch
gold-mips.patch
ld-bfd-mips.patch
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
binutils-mips-disable-assert.patch
binutils-ppc-fix-machine-options.patch
binutils-s390x-1.patch
binutils-s390x-2.patch
CVE-2022-38533.patch
"
builddir="$srcdir/binutils-$pkgver"
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
subpackages=""
subpackages="$subpackages binutils-gold"
fi
if [ "$CHOST" != "$CTARGET" ]; then
@@ -33,6 +38,10 @@ if [ "$CHOST" != "$CTARGET" ]; then
fi
# secfixes:
# 2.39-r2:
# - CVE-2022-38533
# 2.39-r0:
# - CVE-2022-38126
# 2.35.2-r1:
# - CVE-2021-3487
# 2.32-r0:
@@ -44,43 +53,117 @@ fi
# - CVE-2017-7614
build() {
_target="$(arch_to_hostspec aarch64)"
"$builddir"/configure \
--build="$CBUILD" \
--target=$_target \
--with-lib-path=/usr/lib \
local _sysroot=/
local _cross_configure="--enable-install-libiberty --enable-shared"
local _arch_configure=""
local _gold_configure="--disable-gold"
local _plugin_configure="--enable-plugins"
case "$CARCH" in
riscv64)
# binutils creates empty textrels here
# https://sourceware.org/bugzilla/show_bug.cgi?id=25694
local no_textrels=""
;;
*)
# set -z text by default
# this is the default for linkers such as ld.lld too
local no_textrels="--enable-textrel-check=error"
;;
esac
if [ "$CHOST" != "$CTARGET" ]; then
_sysroot="$CBUILDROOT"
_cross_configure="--disable-install-libiberty"
_plugin_configure="--disable-plugins"
fi
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
_gold_configure="--enable-gold"
fi
if [ "$CTARGET_ARCH" = "x86_64" ]; then
_arch_configure="--enable-targets=x86_64-pep"
fi
if [ "$CTARGET_ARCH" = "riscv64" ]; then
_gold_configure="--disable-gold"
fi
case "$CTARGET_ARCH" in
mips*) _hash_style_configure="--enable-default-hash-style=sysv" ;;
*) _hash_style_configure="--enable-default-hash-style=gnu" ;;
esac
./configure \
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
--with-build-sysroot="$CBUILDROOT" \
--with-sysroot=$_sysroot \
--prefix=/usr \
--with-sysroot=/usr/$_target \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
--enable-deterministic-archives \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-gprofng \
--enable-ld=default \
$_gold_configure \
--enable-64-bit-bfd \
$_plugin_configure \
--enable-relro \
--enable-deterministic-archives \
--enable-default-execstack=no \
$_cross_configure \
$_arch_configure \
$_hash_style_configure \
$no_textrels \
--with-pic \
--disable-werror \
--disable-nls
--disable-nls \
--with-mmap \
--with-system-zlib
make
}
package() {
make install DESTDIR="$pkgdir"
# remove man, info folders
rm -rf "$pkgdir"/usr/share
# remove files that conflict with non-cross binutils
rm -rf "$pkgdir"/usr/lib/bfd-plugins
if [ -d "$pkgdir"/usr/lib64 ]; then
mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
rmdir "$pkgdir"/usr/lib64
fi
if [ "$CHOST" != "$CTARGET" ]; then
# creating cross tools: remove any files that would conflict
# with the native tools, or other cross tools
rm -r "${pkgdir:?}"/usr/share
rm -f "$pkgdir"/usr/lib/libiberty.a
rm -r "${pkgdir:?}"/usr/lib/bfd-plugins
fi
}
libs() {
pkgdesc="Runtime libraries from binutils - libbfd and libopcodes"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so "$subpkgdir"/usr/lib/
}
gold() {
pkgdesc="GNU binutils - gold linker"
if [ -e "$pkgdir"/usr/bin/ld.gold ]; then
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ld.gold "$subpkgdir"/usr/bin
fi
mkdir -p "$subpkgdir"/usr/$CTARGET/bin
mv "$pkgdir"/usr/$CTARGET/bin/ld.gold "$subpkgdir"/usr/$CTARGET/bin/ld.gold
}
sha512sums="
8bf0b0d193c9c010e0518ee2b2e5a830898af206510992483b427477ed178396cd210235e85fd7bd99a96fc6d5eedbeccbd48317a10f752b7336ada8b2bb826d binutils-2.38.tar.xz
68e038f339a8c21faa19a57bbc447a51c817f47c2e06d740847c6e9cc3396c025d35d5369fa8c3f8b70414757c89f0e577939ddc0d70f283182504920f53b0a3 binutils-2.39.tar.xz
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
631726e557524633ace39c597acbc5ac39bfd25f7b292eee1f0b2a80a503f4ff799f027757d12d5a24b2fa3c07c7e14602d8a86d96e19876d6d0d5d1a02817e7 CVE-2022-38533.patch
"
@@ -0,0 +1,22 @@
X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff_plain;f=bfd%2Fcoffcode.h;h=52027981c3f052d98e043cd0c877f0bb5da97c7f;hp=67aaf158ca1829fe63f0065f31a0b1009b227b36;hb=ef186fe54aa6d281a3ff8a9528417e5cc614c797;hpb=80075150727d653c39e9d037e15c6b87dcef08cd
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 67aaf158ca1..52027981c3f 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4302,10 +4302,13 @@ coff_set_section_contents (bfd * abfd,
rec = (bfd_byte *) location;
recend = rec + count;
- while (rec < recend)
+ while (recend - rec >= 4)
{
+ size_t len = bfd_get_32 (abfd, rec);
+ if (len == 0 || len > (size_t) (recend - rec) / 4)
+ break;
+ rec += len * 4;
++section->lma;
- rec += bfd_get_32 (abfd, rec) * 4;
}
BFD_ASSERT (rec == recend);
@@ -1,41 +0,0 @@
Fix for DARN opcode error during ppc64le compilation of rng-tools which
occurs with binutils 2.38 but not with binutils 2.37..
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=cebc89b9328;hp=9cbed90ee623d75e31994e7943960c997ba565f2
diff -aur a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -5965,7 +5965,30 @@
options do not count as a new machine, instead they add
to currently selected opcodes. */
ppc_cpu_t machine_sticky = 0;
- new_cpu = ppc_parse_cpu (ppc_cpu, &machine_sticky, cpu_string);
+ /* Unfortunately, some versions of gcc emit a .machine
+ directive very near the start of the compiler's assembly
+ output file. This is bad because it overrides user -Wa
+ cpu selection. Worse, there are versions of gcc that
+ emit the *wrong* cpu, not even respecting the -mcpu given
+ to gcc. See gcc pr101393. And to compound the problem,
+ as of 20220222 gcc doesn't pass the correct cpu option to
+ gas on the command line. See gcc pr59828. Hack around
+ this by keeping sticky options for an early .machine. */
+ asection *sec;
+ for (sec = stdoutput->sections; sec != NULL; sec = sec->next)
+ {
+ segment_info_type *info = seg_info (sec);
+ /* Are the frags for this section perturbed from their
+ initial state? Even .align will count here. */
+ if (info != NULL
+ && (info->frchainP->frch_root != info->frchainP->frch_last
+ || info->frchainP->frch_root->fr_type != rs_fill
+ || info->frchainP->frch_root->fr_fix != 0))
+ break;
+ }
+ new_cpu = ppc_parse_cpu (ppc_cpu,
+ sec == NULL ? &sticky : &machine_sticky,
+ cpu_string);
if (new_cpu != 0)
ppc_cpu = new_cpu;
else
@@ -1,147 +0,0 @@
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:29:58 +0200
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
No dynamic relocs are needed for TLS defined in an executable, the
TP relative offset is known at link time.
Fixes
FAIL: Build pr22263-1
bfd/
PR ld/22263
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
instead of bfd_link_pic for TLS.
(elf_s390_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
---
bfd/elf64-s390.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index e780efa7181..00ee386baab 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
int r_type,
int is_local)
{
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
return r_type;
switch (r_type)
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
case R_390_TLS_GOTIE20:
case R_390_TLS_GOTIE64:
case R_390_TLS_IEENT:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
break;
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
break;
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
we can save the dynamic TLS relocation. */
if (h->got.refcount > 0
- && !bfd_link_pic (info)
+ && !bfd_link_dll (info)
&& h->dynindx == -1
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
{
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
/* Relocations for tls literal pool entries. */
case R_390_TLS_IE64:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
{
Elf_Internal_Rela outrel;
asection *sreloc;
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
else if (h != NULL)
{
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
r_type = R_390_TLS_LE64;
}
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
if (local_got_offsets == NULL)
abort();
off = local_got_offsets[r_symndx];
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
goto emit_tls_relocs;
}
else
{
off = h->got.offset;
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
goto emit_tls_relocs;
}
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
break;
case R_390_TLS_LDM64:
- if (! bfd_link_pic (info))
+ if (! bfd_link_dll (info))
/* The literal pool entry this relocation refers to gets ignored
by the optimized code of the local exec model. Do nothing
and the value will turn out zero. */
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
continue;
case R_390_TLS_LDO64:
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
relocation -= dtpoff_base (info);
else
/* When converting LDO to LE, we must negate. */
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
if (r_type == R_390_TLS_LOAD)
{
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* IE->LE transition. Four valid cases:
lg %rx,(0,%ry) -> sllg %rx,%ry,0
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
invalid_tls_insn (input_bfd, input_section, rel);
return false;
}
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* GD->LE transition.
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
}
else if (r_type == R_390_TLS_LDCALL)
{
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
{
unsigned int insn0, insn1;
--
2.27.0
@@ -1,51 +0,0 @@
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:30:55 +0200
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
In static-pie case, there are IRELATIVE-relocs in
.rela.iplt (htab->irelplt), which will later be grouped
to .rela.plt. On s390, the IRELATIVE relocations are
always located in .rela.iplt - even for non-static case.
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
to the dynamic section even if htab->srelplt->size == 0.
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
bfd/
elf64-s390.c (elf_s390_size_dynamic_sections):
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
---
bfd/elf64-s390.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 00ee386baab..0b851f7ac0e 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
else if (startswith (bfd_section_name (s), ".rela"))
{
if (s->size != 0 && s != htab->elf.srelplt)
- relocs = true;
+ {
+ relocs = true;
+ if (s == htab->elf.irelplt)
+ {
+ /* In static-pie case, there are IRELATIVE-relocs in
+ .rela.iplt (htab->irelplt), which will later be grouped
+ to .rela.plt. On s390, the IRELATIVE relocations are
+ always located in .rela.iplt - even for non-static case.
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
+ to the dynamic section even if htab->srelplt->size == 0.
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
+ htab->elf.dt_jmprel_required = true;
+ }
+ }
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
--
2.27.0
+111 -28
View File
@@ -2,28 +2,33 @@
# Generator: pmbootstrap aportgen binutils-armhf
# Based on: main/binutils
CTARGET_ARCH=armhf
CTARGET="$(arch_to_hostspec $CTARGET_ARCH)"
pkgname=binutils-armhf
pkgver=2.38
pkgrel=2
pkgver=2.39
pkgrel=3
pkgdesc="Tools necessary to build programs for armhf targets"
url="https://www.gnu.org/software/binutils/"
makedepends="gettext libtool autoconf automake bison texinfo"
makedepends_build="bison flex texinfo"
makedepends_host="zlib-dev"
makedepends="$makedepends_build $makedepends_host"
arch="x86_64"
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages="binutils-dev binutils-doc"
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
binutils-ld-fix-static-linking.patch
gold-mips.patch
ld-bfd-mips.patch
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
binutils-mips-disable-assert.patch
binutils-ppc-fix-machine-options.patch
binutils-s390x-1.patch
binutils-s390x-2.patch
CVE-2022-38533.patch
"
builddir="$srcdir/binutils-$pkgver"
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
subpackages=""
subpackages="$subpackages binutils-gold"
fi
if [ "$CHOST" != "$CTARGET" ]; then
@@ -33,6 +38,10 @@ if [ "$CHOST" != "$CTARGET" ]; then
fi
# secfixes:
# 2.39-r2:
# - CVE-2022-38533
# 2.39-r0:
# - CVE-2022-38126
# 2.35.2-r1:
# - CVE-2021-3487
# 2.32-r0:
@@ -44,43 +53,117 @@ fi
# - CVE-2017-7614
build() {
_target="$(arch_to_hostspec armhf)"
"$builddir"/configure \
--build="$CBUILD" \
--target=$_target \
--with-lib-path=/usr/lib \
local _sysroot=/
local _cross_configure="--enable-install-libiberty --enable-shared"
local _arch_configure=""
local _gold_configure="--disable-gold"
local _plugin_configure="--enable-plugins"
case "$CARCH" in
riscv64)
# binutils creates empty textrels here
# https://sourceware.org/bugzilla/show_bug.cgi?id=25694
local no_textrels=""
;;
*)
# set -z text by default
# this is the default for linkers such as ld.lld too
local no_textrels="--enable-textrel-check=error"
;;
esac
if [ "$CHOST" != "$CTARGET" ]; then
_sysroot="$CBUILDROOT"
_cross_configure="--disable-install-libiberty"
_plugin_configure="--disable-plugins"
fi
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
_gold_configure="--enable-gold"
fi
if [ "$CTARGET_ARCH" = "x86_64" ]; then
_arch_configure="--enable-targets=x86_64-pep"
fi
if [ "$CTARGET_ARCH" = "riscv64" ]; then
_gold_configure="--disable-gold"
fi
case "$CTARGET_ARCH" in
mips*) _hash_style_configure="--enable-default-hash-style=sysv" ;;
*) _hash_style_configure="--enable-default-hash-style=gnu" ;;
esac
./configure \
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
--with-build-sysroot="$CBUILDROOT" \
--with-sysroot=$_sysroot \
--prefix=/usr \
--with-sysroot=/usr/$_target \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
--enable-deterministic-archives \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-gprofng \
--enable-ld=default \
$_gold_configure \
--enable-64-bit-bfd \
$_plugin_configure \
--enable-relro \
--enable-deterministic-archives \
--enable-default-execstack=no \
$_cross_configure \
$_arch_configure \
$_hash_style_configure \
$no_textrels \
--with-pic \
--disable-werror \
--disable-nls
--disable-nls \
--with-mmap \
--with-system-zlib
make
}
package() {
make install DESTDIR="$pkgdir"
# remove man, info folders
rm -rf "$pkgdir"/usr/share
# remove files that conflict with non-cross binutils
rm -rf "$pkgdir"/usr/lib/bfd-plugins
if [ -d "$pkgdir"/usr/lib64 ]; then
mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
rmdir "$pkgdir"/usr/lib64
fi
if [ "$CHOST" != "$CTARGET" ]; then
# creating cross tools: remove any files that would conflict
# with the native tools, or other cross tools
rm -r "${pkgdir:?}"/usr/share
rm -f "$pkgdir"/usr/lib/libiberty.a
rm -r "${pkgdir:?}"/usr/lib/bfd-plugins
fi
}
libs() {
pkgdesc="Runtime libraries from binutils - libbfd and libopcodes"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so "$subpkgdir"/usr/lib/
}
gold() {
pkgdesc="GNU binutils - gold linker"
if [ -e "$pkgdir"/usr/bin/ld.gold ]; then
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ld.gold "$subpkgdir"/usr/bin
fi
mkdir -p "$subpkgdir"/usr/$CTARGET/bin
mv "$pkgdir"/usr/$CTARGET/bin/ld.gold "$subpkgdir"/usr/$CTARGET/bin/ld.gold
}
sha512sums="
8bf0b0d193c9c010e0518ee2b2e5a830898af206510992483b427477ed178396cd210235e85fd7bd99a96fc6d5eedbeccbd48317a10f752b7336ada8b2bb826d binutils-2.38.tar.xz
68e038f339a8c21faa19a57bbc447a51c817f47c2e06d740847c6e9cc3396c025d35d5369fa8c3f8b70414757c89f0e577939ddc0d70f283182504920f53b0a3 binutils-2.39.tar.xz
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
631726e557524633ace39c597acbc5ac39bfd25f7b292eee1f0b2a80a503f4ff799f027757d12d5a24b2fa3c07c7e14602d8a86d96e19876d6d0d5d1a02817e7 CVE-2022-38533.patch
"
+22
View File
@@ -0,0 +1,22 @@
X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff_plain;f=bfd%2Fcoffcode.h;h=52027981c3f052d98e043cd0c877f0bb5da97c7f;hp=67aaf158ca1829fe63f0065f31a0b1009b227b36;hb=ef186fe54aa6d281a3ff8a9528417e5cc614c797;hpb=80075150727d653c39e9d037e15c6b87dcef08cd
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 67aaf158ca1..52027981c3f 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4302,10 +4302,13 @@ coff_set_section_contents (bfd * abfd,
rec = (bfd_byte *) location;
recend = rec + count;
- while (rec < recend)
+ while (recend - rec >= 4)
{
+ size_t len = bfd_get_32 (abfd, rec);
+ if (len == 0 || len > (size_t) (recend - rec) / 4)
+ break;
+ rec += len * 4;
++section->lma;
- rec += bfd_get_32 (abfd, rec) * 4;
}
BFD_ASSERT (rec == recend);
@@ -1,41 +0,0 @@
Fix for DARN opcode error during ppc64le compilation of rng-tools which
occurs with binutils 2.38 but not with binutils 2.37..
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=cebc89b9328;hp=9cbed90ee623d75e31994e7943960c997ba565f2
diff -aur a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -5965,7 +5965,30 @@
options do not count as a new machine, instead they add
to currently selected opcodes. */
ppc_cpu_t machine_sticky = 0;
- new_cpu = ppc_parse_cpu (ppc_cpu, &machine_sticky, cpu_string);
+ /* Unfortunately, some versions of gcc emit a .machine
+ directive very near the start of the compiler's assembly
+ output file. This is bad because it overrides user -Wa
+ cpu selection. Worse, there are versions of gcc that
+ emit the *wrong* cpu, not even respecting the -mcpu given
+ to gcc. See gcc pr101393. And to compound the problem,
+ as of 20220222 gcc doesn't pass the correct cpu option to
+ gas on the command line. See gcc pr59828. Hack around
+ this by keeping sticky options for an early .machine. */
+ asection *sec;
+ for (sec = stdoutput->sections; sec != NULL; sec = sec->next)
+ {
+ segment_info_type *info = seg_info (sec);
+ /* Are the frags for this section perturbed from their
+ initial state? Even .align will count here. */
+ if (info != NULL
+ && (info->frchainP->frch_root != info->frchainP->frch_last
+ || info->frchainP->frch_root->fr_type != rs_fill
+ || info->frchainP->frch_root->fr_fix != 0))
+ break;
+ }
+ new_cpu = ppc_parse_cpu (ppc_cpu,
+ sec == NULL ? &sticky : &machine_sticky,
+ cpu_string);
if (new_cpu != 0)
ppc_cpu = new_cpu;
else
-147
View File
@@ -1,147 +0,0 @@
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:29:58 +0200
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
No dynamic relocs are needed for TLS defined in an executable, the
TP relative offset is known at link time.
Fixes
FAIL: Build pr22263-1
bfd/
PR ld/22263
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
instead of bfd_link_pic for TLS.
(elf_s390_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
---
bfd/elf64-s390.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index e780efa7181..00ee386baab 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
int r_type,
int is_local)
{
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
return r_type;
switch (r_type)
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
case R_390_TLS_GOTIE20:
case R_390_TLS_GOTIE64:
case R_390_TLS_IEENT:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
break;
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
break;
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
we can save the dynamic TLS relocation. */
if (h->got.refcount > 0
- && !bfd_link_pic (info)
+ && !bfd_link_dll (info)
&& h->dynindx == -1
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
{
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
/* Relocations for tls literal pool entries. */
case R_390_TLS_IE64:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
{
Elf_Internal_Rela outrel;
asection *sreloc;
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
else if (h != NULL)
{
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
r_type = R_390_TLS_LE64;
}
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
if (local_got_offsets == NULL)
abort();
off = local_got_offsets[r_symndx];
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
goto emit_tls_relocs;
}
else
{
off = h->got.offset;
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
goto emit_tls_relocs;
}
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
break;
case R_390_TLS_LDM64:
- if (! bfd_link_pic (info))
+ if (! bfd_link_dll (info))
/* The literal pool entry this relocation refers to gets ignored
by the optimized code of the local exec model. Do nothing
and the value will turn out zero. */
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
continue;
case R_390_TLS_LDO64:
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
relocation -= dtpoff_base (info);
else
/* When converting LDO to LE, we must negate. */
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
if (r_type == R_390_TLS_LOAD)
{
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* IE->LE transition. Four valid cases:
lg %rx,(0,%ry) -> sllg %rx,%ry,0
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
invalid_tls_insn (input_bfd, input_section, rel);
return false;
}
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* GD->LE transition.
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
}
else if (r_type == R_390_TLS_LDCALL)
{
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
{
unsigned int insn0, insn1;
--
2.27.0
@@ -1,51 +0,0 @@
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:30:55 +0200
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
In static-pie case, there are IRELATIVE-relocs in
.rela.iplt (htab->irelplt), which will later be grouped
to .rela.plt. On s390, the IRELATIVE relocations are
always located in .rela.iplt - even for non-static case.
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
to the dynamic section even if htab->srelplt->size == 0.
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
bfd/
elf64-s390.c (elf_s390_size_dynamic_sections):
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
---
bfd/elf64-s390.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 00ee386baab..0b851f7ac0e 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
else if (startswith (bfd_section_name (s), ".rela"))
{
if (s->size != 0 && s != htab->elf.srelplt)
- relocs = true;
+ {
+ relocs = true;
+ if (s == htab->elf.irelplt)
+ {
+ /* In static-pie case, there are IRELATIVE-relocs in
+ .rela.iplt (htab->irelplt), which will later be grouped
+ to .rela.plt. On s390, the IRELATIVE relocations are
+ always located in .rela.iplt - even for non-static case.
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
+ to the dynamic section even if htab->srelplt->size == 0.
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
+ htab->elf.dt_jmprel_required = true;
+ }
+ }
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
--
2.27.0
+111 -28
View File
@@ -2,28 +2,33 @@
# Generator: pmbootstrap aportgen binutils-armv7
# Based on: main/binutils
CTARGET_ARCH=armv7
CTARGET="$(arch_to_hostspec $CTARGET_ARCH)"
pkgname=binutils-armv7
pkgver=2.38
pkgrel=2
pkgver=2.39
pkgrel=3
pkgdesc="Tools necessary to build programs for armv7 targets"
url="https://www.gnu.org/software/binutils/"
makedepends="gettext libtool autoconf automake bison texinfo"
makedepends_build="bison flex texinfo"
makedepends_host="zlib-dev"
makedepends="$makedepends_build $makedepends_host"
arch="x86_64"
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages="binutils-dev binutils-doc"
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
binutils-ld-fix-static-linking.patch
gold-mips.patch
ld-bfd-mips.patch
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
binutils-mips-disable-assert.patch
binutils-ppc-fix-machine-options.patch
binutils-s390x-1.patch
binutils-s390x-2.patch
CVE-2022-38533.patch
"
builddir="$srcdir/binutils-$pkgver"
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
subpackages=""
subpackages="$subpackages binutils-gold"
fi
if [ "$CHOST" != "$CTARGET" ]; then
@@ -33,6 +38,10 @@ if [ "$CHOST" != "$CTARGET" ]; then
fi
# secfixes:
# 2.39-r2:
# - CVE-2022-38533
# 2.39-r0:
# - CVE-2022-38126
# 2.35.2-r1:
# - CVE-2021-3487
# 2.32-r0:
@@ -44,43 +53,117 @@ fi
# - CVE-2017-7614
build() {
_target="$(arch_to_hostspec armv7)"
"$builddir"/configure \
--build="$CBUILD" \
--target=$_target \
--with-lib-path=/usr/lib \
local _sysroot=/
local _cross_configure="--enable-install-libiberty --enable-shared"
local _arch_configure=""
local _gold_configure="--disable-gold"
local _plugin_configure="--enable-plugins"
case "$CARCH" in
riscv64)
# binutils creates empty textrels here
# https://sourceware.org/bugzilla/show_bug.cgi?id=25694
local no_textrels=""
;;
*)
# set -z text by default
# this is the default for linkers such as ld.lld too
local no_textrels="--enable-textrel-check=error"
;;
esac
if [ "$CHOST" != "$CTARGET" ]; then
_sysroot="$CBUILDROOT"
_cross_configure="--disable-install-libiberty"
_plugin_configure="--disable-plugins"
fi
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
_gold_configure="--enable-gold"
fi
if [ "$CTARGET_ARCH" = "x86_64" ]; then
_arch_configure="--enable-targets=x86_64-pep"
fi
if [ "$CTARGET_ARCH" = "riscv64" ]; then
_gold_configure="--disable-gold"
fi
case "$CTARGET_ARCH" in
mips*) _hash_style_configure="--enable-default-hash-style=sysv" ;;
*) _hash_style_configure="--enable-default-hash-style=gnu" ;;
esac
./configure \
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
--with-build-sysroot="$CBUILDROOT" \
--with-sysroot=$_sysroot \
--prefix=/usr \
--with-sysroot=/usr/$_target \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
--enable-deterministic-archives \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-gprofng \
--enable-ld=default \
$_gold_configure \
--enable-64-bit-bfd \
$_plugin_configure \
--enable-relro \
--enable-deterministic-archives \
--enable-default-execstack=no \
$_cross_configure \
$_arch_configure \
$_hash_style_configure \
$no_textrels \
--with-pic \
--disable-werror \
--disable-nls
--disable-nls \
--with-mmap \
--with-system-zlib
make
}
package() {
make install DESTDIR="$pkgdir"
# remove man, info folders
rm -rf "$pkgdir"/usr/share
# remove files that conflict with non-cross binutils
rm -rf "$pkgdir"/usr/lib/bfd-plugins
if [ -d "$pkgdir"/usr/lib64 ]; then
mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
rmdir "$pkgdir"/usr/lib64
fi
if [ "$CHOST" != "$CTARGET" ]; then
# creating cross tools: remove any files that would conflict
# with the native tools, or other cross tools
rm -r "${pkgdir:?}"/usr/share
rm -f "$pkgdir"/usr/lib/libiberty.a
rm -r "${pkgdir:?}"/usr/lib/bfd-plugins
fi
}
libs() {
pkgdesc="Runtime libraries from binutils - libbfd and libopcodes"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so "$subpkgdir"/usr/lib/
}
gold() {
pkgdesc="GNU binutils - gold linker"
if [ -e "$pkgdir"/usr/bin/ld.gold ]; then
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ld.gold "$subpkgdir"/usr/bin
fi
mkdir -p "$subpkgdir"/usr/$CTARGET/bin
mv "$pkgdir"/usr/$CTARGET/bin/ld.gold "$subpkgdir"/usr/$CTARGET/bin/ld.gold
}
sha512sums="
8bf0b0d193c9c010e0518ee2b2e5a830898af206510992483b427477ed178396cd210235e85fd7bd99a96fc6d5eedbeccbd48317a10f752b7336ada8b2bb826d binutils-2.38.tar.xz
68e038f339a8c21faa19a57bbc447a51c817f47c2e06d740847c6e9cc3396c025d35d5369fa8c3f8b70414757c89f0e577939ddc0d70f283182504920f53b0a3 binutils-2.39.tar.xz
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
631726e557524633ace39c597acbc5ac39bfd25f7b292eee1f0b2a80a503f4ff799f027757d12d5a24b2fa3c07c7e14602d8a86d96e19876d6d0d5d1a02817e7 CVE-2022-38533.patch
"
+22
View File
@@ -0,0 +1,22 @@
X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff_plain;f=bfd%2Fcoffcode.h;h=52027981c3f052d98e043cd0c877f0bb5da97c7f;hp=67aaf158ca1829fe63f0065f31a0b1009b227b36;hb=ef186fe54aa6d281a3ff8a9528417e5cc614c797;hpb=80075150727d653c39e9d037e15c6b87dcef08cd
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 67aaf158ca1..52027981c3f 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4302,10 +4302,13 @@ coff_set_section_contents (bfd * abfd,
rec = (bfd_byte *) location;
recend = rec + count;
- while (rec < recend)
+ while (recend - rec >= 4)
{
+ size_t len = bfd_get_32 (abfd, rec);
+ if (len == 0 || len > (size_t) (recend - rec) / 4)
+ break;
+ rec += len * 4;
++section->lma;
- rec += bfd_get_32 (abfd, rec) * 4;
}
BFD_ASSERT (rec == recend);
@@ -1,41 +0,0 @@
Fix for DARN opcode error during ppc64le compilation of rng-tools which
occurs with binutils 2.38 but not with binutils 2.37..
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=cebc89b9328;hp=9cbed90ee623d75e31994e7943960c997ba565f2
diff -aur a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -5965,7 +5965,30 @@
options do not count as a new machine, instead they add
to currently selected opcodes. */
ppc_cpu_t machine_sticky = 0;
- new_cpu = ppc_parse_cpu (ppc_cpu, &machine_sticky, cpu_string);
+ /* Unfortunately, some versions of gcc emit a .machine
+ directive very near the start of the compiler's assembly
+ output file. This is bad because it overrides user -Wa
+ cpu selection. Worse, there are versions of gcc that
+ emit the *wrong* cpu, not even respecting the -mcpu given
+ to gcc. See gcc pr101393. And to compound the problem,
+ as of 20220222 gcc doesn't pass the correct cpu option to
+ gas on the command line. See gcc pr59828. Hack around
+ this by keeping sticky options for an early .machine. */
+ asection *sec;
+ for (sec = stdoutput->sections; sec != NULL; sec = sec->next)
+ {
+ segment_info_type *info = seg_info (sec);
+ /* Are the frags for this section perturbed from their
+ initial state? Even .align will count here. */
+ if (info != NULL
+ && (info->frchainP->frch_root != info->frchainP->frch_last
+ || info->frchainP->frch_root->fr_type != rs_fill
+ || info->frchainP->frch_root->fr_fix != 0))
+ break;
+ }
+ new_cpu = ppc_parse_cpu (ppc_cpu,
+ sec == NULL ? &sticky : &machine_sticky,
+ cpu_string);
if (new_cpu != 0)
ppc_cpu = new_cpu;
else
-147
View File
@@ -1,147 +0,0 @@
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:29:58 +0200
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
No dynamic relocs are needed for TLS defined in an executable, the
TP relative offset is known at link time.
Fixes
FAIL: Build pr22263-1
bfd/
PR ld/22263
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
instead of bfd_link_pic for TLS.
(elf_s390_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_relocate_section): Likewise.
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
---
bfd/elf64-s390.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index e780efa7181..00ee386baab 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
int r_type,
int is_local)
{
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
return r_type;
switch (r_type)
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
case R_390_TLS_GOTIE20:
case R_390_TLS_GOTIE64:
case R_390_TLS_IEENT:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
break;
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
break;
info->flags |= DF_STATIC_TLS;
/* Fall through */
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
we can save the dynamic TLS relocation. */
if (h->got.refcount > 0
- && !bfd_link_pic (info)
+ && !bfd_link_dll (info)
&& h->dynindx == -1
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
{
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
/* Relocations for tls literal pool entries. */
case R_390_TLS_IE64:
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
{
Elf_Internal_Rela outrel;
asection *sreloc;
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
else if (h != NULL)
{
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
r_type = R_390_TLS_LE64;
}
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
if (local_got_offsets == NULL)
abort();
off = local_got_offsets[r_symndx];
- if (bfd_link_pic (info))
+ if (bfd_link_dll (info))
goto emit_tls_relocs;
}
else
{
off = h->got.offset;
tls_type = elf_s390_hash_entry(h)->tls_type;
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
goto emit_tls_relocs;
}
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
break;
case R_390_TLS_LDM64:
- if (! bfd_link_pic (info))
+ if (! bfd_link_dll (info))
/* The literal pool entry this relocation refers to gets ignored
by the optimized code of the local exec model. Do nothing
and the value will turn out zero. */
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
continue;
case R_390_TLS_LDO64:
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
relocation -= dtpoff_base (info);
else
/* When converting LDO to LE, we must negate. */
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
if (r_type == R_390_TLS_LOAD)
{
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* IE->LE transition. Four valid cases:
lg %rx,(0,%ry) -> sllg %rx,%ry,0
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
invalid_tls_insn (input_bfd, input_section, rel);
return false;
}
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
{
/* GD->LE transition.
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
}
else if (r_type == R_390_TLS_LDCALL)
{
- if (!bfd_link_pic (info))
+ if (!bfd_link_dll (info))
{
unsigned int insn0, insn1;
--
2.27.0
@@ -1,51 +0,0 @@
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
From: Stefan Liebler <stli@linux.ibm.com>
Date: Thu, 28 Apr 2022 14:30:55 +0200
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
In static-pie case, there are IRELATIVE-relocs in
.rela.iplt (htab->irelplt), which will later be grouped
to .rela.plt. On s390, the IRELATIVE relocations are
always located in .rela.iplt - even for non-static case.
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
to the dynamic section even if htab->srelplt->size == 0.
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
bfd/
elf64-s390.c (elf_s390_size_dynamic_sections):
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
---
bfd/elf64-s390.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 00ee386baab..0b851f7ac0e 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
else if (startswith (bfd_section_name (s), ".rela"))
{
if (s->size != 0 && s != htab->elf.srelplt)
- relocs = true;
+ {
+ relocs = true;
+ if (s == htab->elf.irelplt)
+ {
+ /* In static-pie case, there are IRELATIVE-relocs in
+ .rela.iplt (htab->irelplt), which will later be grouped
+ to .rela.plt. On s390, the IRELATIVE relocations are
+ always located in .rela.iplt - even for non-static case.
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
+ to the dynamic section even if htab->srelplt->size == 0.
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
+ htab->elf.dt_jmprel_required = true;
+ }
+ }
/* We use the reloc_count field as a counter if we need
to copy relocs into the output file. */
--
2.27.0
@@ -0,0 +1,55 @@
From bbf05b742fde518fb97c789b043fe0d3aaf549f0 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Tue, 21 Sep 2021 14:53:13 +0000
Subject: [PATCH] Revert "PR25882, .gnu.attributes are not checked for shared
libraries"
This revert is needed to avoid wrongly tagging objects with the incompatible
IBM long double ABI, which is not supported by musl and will result in
linking errors if used.
This reverts commit a8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba.
---
bfd/elf32-tic6x.c | 3 ---
ld/ldlang.c | 10 ++++------
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 5754f3cb860..3ad1d612749 100644
--- a/bfd/elf32-tic6x.c
+++ b/bfd/elf32-tic6x.c
@@ -3735,9 +3735,6 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
case Tag_ABI_PIC:
case Tag_ABI_PID:
- /* Don't transfer these tags from dynamic objects. */
- if ((ibfd->flags & DYNAMIC) != 0)
- continue;
if (out_attr[i].i > in_attr[i].i)
out_attr[i].i = in_attr[i].i;
break;
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 37b64c89ee1..f13beaef9d9 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -7071,13 +7071,11 @@ lang_check (void)
bfd_printable_name (input_bfd), input_bfd,
bfd_printable_name (link_info.output_bfd));
}
-
- /* If the input bfd has no contents, it shouldn't set the
- private data of the output bfd. */
- else if (!file->flags.just_syms
- && ((input_bfd->flags & DYNAMIC) != 0
- || bfd_count_sections (input_bfd) != 0))
+ else if (bfd_count_sections (input_bfd))
{
+ /* If the input bfd has no contents, it shouldn't set the
+ private data of the output bfd. */
+
bfd_error_handler_type pfn = NULL;
/* If we aren't supposed to warn about mismatched input
--
2.33.0
+169
View File
@@ -0,0 +1,169 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen binutils-riscv64
# Based on: main/binutils
CTARGET_ARCH=riscv64
CTARGET="$(arch_to_hostspec $CTARGET_ARCH)"
pkgname=binutils-riscv64
pkgver=2.39
pkgrel=3
pkgdesc="Tools necessary to build programs for riscv64 targets"
url="https://www.gnu.org/software/binutils/"
makedepends_build="bison flex texinfo"
makedepends_host="zlib-dev"
makedepends="$makedepends_build $makedepends_host"
arch="x86_64"
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages="binutils-dev binutils-doc"
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
binutils-ld-fix-static-linking.patch
gold-mips.patch
ld-bfd-mips.patch
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
binutils-mips-disable-assert.patch
CVE-2022-38533.patch
"
builddir="$srcdir/binutils-$pkgver"
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
subpackages="$subpackages binutils-gold"
fi
if [ "$CHOST" != "$CTARGET" ]; then
pkgname="binutils-$CTARGET_ARCH"
subpackages=""
sonameprefix="binutils:"
fi
# secfixes:
# 2.39-r2:
# - CVE-2022-38533
# 2.39-r0:
# - CVE-2022-38126
# 2.35.2-r1:
# - CVE-2021-3487
# 2.32-r0:
# - CVE-2018-19931
# - CVE-2018-19932
# - CVE-2018-20002
# - CVE-2018-20712
# 2.28-r1:
# - CVE-2017-7614
build() {
local _sysroot=/
local _cross_configure="--enable-install-libiberty --enable-shared"
local _arch_configure=""
local _gold_configure="--disable-gold"
local _plugin_configure="--enable-plugins"
case "$CARCH" in
riscv64)
# binutils creates empty textrels here
# https://sourceware.org/bugzilla/show_bug.cgi?id=25694
local no_textrels=""
;;
*)
# set -z text by default
# this is the default for linkers such as ld.lld too
local no_textrels="--enable-textrel-check=error"
;;
esac
if [ "$CHOST" != "$CTARGET" ]; then
_sysroot="$CBUILDROOT"
_cross_configure="--disable-install-libiberty"
_plugin_configure="--disable-plugins"
fi
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
_gold_configure="--enable-gold"
fi
if [ "$CTARGET_ARCH" = "x86_64" ]; then
_arch_configure="--enable-targets=x86_64-pep"
fi
if [ "$CTARGET_ARCH" = "riscv64" ]; then
_gold_configure="--disable-gold"
fi
case "$CTARGET_ARCH" in
mips*) _hash_style_configure="--enable-default-hash-style=sysv" ;;
*) _hash_style_configure="--enable-default-hash-style=gnu" ;;
esac
./configure \
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
--with-build-sysroot="$CBUILDROOT" \
--with-sysroot=$_sysroot \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-gprofng \
--enable-ld=default \
$_gold_configure \
--enable-64-bit-bfd \
$_plugin_configure \
--enable-relro \
--enable-deterministic-archives \
--enable-default-execstack=no \
$_cross_configure \
$_arch_configure \
$_hash_style_configure \
$no_textrels \
--with-pic \
--disable-werror \
--disable-nls \
--with-mmap \
--with-system-zlib
make
}
package() {
make install DESTDIR="$pkgdir"
if [ -d "$pkgdir"/usr/lib64 ]; then
mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
rmdir "$pkgdir"/usr/lib64
fi
if [ "$CHOST" != "$CTARGET" ]; then
# creating cross tools: remove any files that would conflict
# with the native tools, or other cross tools
rm -r "${pkgdir:?}"/usr/share
rm -f "$pkgdir"/usr/lib/libiberty.a
rm -r "${pkgdir:?}"/usr/lib/bfd-plugins
fi
}
libs() {
pkgdesc="Runtime libraries from binutils - libbfd and libopcodes"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so "$subpkgdir"/usr/lib/
}
gold() {
pkgdesc="GNU binutils - gold linker"
if [ -e "$pkgdir"/usr/bin/ld.gold ]; then
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ld.gold "$subpkgdir"/usr/bin
fi
mkdir -p "$subpkgdir"/usr/$CTARGET/bin
mv "$pkgdir"/usr/$CTARGET/bin/ld.gold "$subpkgdir"/usr/$CTARGET/bin/ld.gold
}
sha512sums="
68e038f339a8c21faa19a57bbc447a51c817f47c2e06d740847c6e9cc3396c025d35d5369fa8c3f8b70414757c89f0e577939ddc0d70f283182504920f53b0a3 binutils-2.39.tar.xz
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
631726e557524633ace39c597acbc5ac39bfd25f7b292eee1f0b2a80a503f4ff799f027757d12d5a24b2fa3c07c7e14602d8a86d96e19876d6d0d5d1a02817e7 CVE-2022-38533.patch
"
@@ -0,0 +1,22 @@
X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff_plain;f=bfd%2Fcoffcode.h;h=52027981c3f052d98e043cd0c877f0bb5da97c7f;hp=67aaf158ca1829fe63f0065f31a0b1009b227b36;hb=ef186fe54aa6d281a3ff8a9528417e5cc614c797;hpb=80075150727d653c39e9d037e15c6b87dcef08cd
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 67aaf158ca1..52027981c3f 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4302,10 +4302,13 @@ coff_set_section_contents (bfd * abfd,
rec = (bfd_byte *) location;
recend = rec + count;
- while (rec < recend)
+ while (recend - rec >= 4)
{
+ size_t len = bfd_get_32 (abfd, rec);
+ if (len == 0 || len > (size_t) (recend - rec) / 4)
+ break;
+ rec += len * 4;
++section->lma;
- rec += bfd_get_32 (abfd, rec) * 4;
}
BFD_ASSERT (rec == recend);
@@ -0,0 +1,46 @@
This fixes static linking for our hardened toolchain
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index e8126cb..9532bfb 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -235,8 +235,8 @@ test "${LARGE_SECTIONS}" = "yes" && LARGE_SECTIONS="
if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
- CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors"
- DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors"
+ CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin*.o *crtend*.o $OTHER_EXCLUDE_FILES) .ctors"
+ DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin*.o *crtend*.o $OTHER_EXCLUDE_FILES) .dtors"
else
SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
@@ -270,15 +270,14 @@ CTOR=".ctors ${CONSTRUCTING-0} :
doesn't matter which directory crtbegin.o
is in. */
- KEEP (*crtbegin.o(.ctors))
- KEEP (*crtbegin?.o(.ctors))
+ KEEP (*crtbegin*.o(.ctors))
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))
+ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
${CONSTRUCTING+${CTOR_END}}
@@ -286,9 +285,8 @@ CTOR=".ctors ${CONSTRUCTING-0} :
DTOR=".dtors ${CONSTRUCTING-0} :
{
${CONSTRUCTING+${DTOR_START}}
- KEEP (*crtbegin.o(.dtors))
- KEEP (*crtbegin?.o(.dtors))
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))
+ KEEP (*crtbegin*.o(.dtors))
+ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
${CONSTRUCTING+${DTOR_END}}
@@ -0,0 +1,14 @@
diff -urN binutils-2.35.2.orig/bfd/elfxx-mips.c binutils-2.35.2/bfd/elfxx-mips.c
--- binutils-2.35.2.orig/bfd/elfxx-mips.c 2021-01-30 01:38:03.000000000 -0700
+++ binutils-2.35.2/bfd/elfxx-mips.c 2021-05-13 17:35:34.706913601 -0600
@@ -6744,8 +6744,10 @@
in the relocation. */
if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root))
{
+#if 0
BFD_ASSERT (htab->root.target_os == is_vxworks
|| h->global_got_area != GGA_NONE);
+#endif
indx = h->root.dynindx;
if (SGI_COMPAT (output_bfd))
defined_p = h->root.def_regular;
+39
View File
@@ -0,0 +1,39 @@
# DP: Fix gold on mips64 targets.
gold/
2016-08-09 Aurelien Jarno <aurelien@aurel32.net>
* configure.tgt: Add mips64el*-*-*|mips64le*-*-* and mips64*-*-*.
--- a/gold/configure.tgt
+++ b/gold/configure.tgt
@@ -153,6 +153,13 @@ aarch64*-*)
targ_big_endian=false
targ_extra_big_endian=true
;;
+mips*64*el*-*-*|mips*64*le*-*-*)
+ targ_obj=mips
+ targ_machine=EM_MIPS_RS3_LE
+ targ_size=64
+ targ_big_endian=false
+ targ_extra_big_endian=true
+ ;;
mips*el*-*-*|mips*le*-*-*)
targ_obj=mips
targ_machine=EM_MIPS_RS3_LE
@@ -160,6 +167,13 @@ mips*el*-*-*|mips*le*-*-*)
targ_big_endian=false
targ_extra_big_endian=true
;;
+mips*64*-*-*)
+ targ_obj=mips
+ targ_machine=EM_MIPS
+ targ_size=64
+ targ_big_endian=true
+ targ_extra_big_endian=false
+ ;;
mips*-*-*)
targ_obj=mips
targ_machine=EM_MIPS
+19
View File
@@ -0,0 +1,19 @@
--- ./ld/configure.tgt.orig
+++ ./ld/configure.tgt
@@ -541,12 +541,12 @@
;;
mips*-*-windiss) targ_emul=elf32mipswindiss
;;
-mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
- targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
+mips64*el-*-linux-*) targ_emul=elf64ltsmip
+ targ_extra_emuls="elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip elf64btsmip"
targ_extra_libpath=$targ_extra_emuls
;;
-mips64*-*-linux-*) targ_emul=elf32btsmipn32
- targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
+mips64*-*-linux-*) targ_emul=elf64btsmip
+ targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip"
targ_extra_libpath=$targ_extra_emuls
;;
mips*el-*-linux-*) targ_emul=elf32ltsmip
+3 -3
View File
@@ -8,10 +8,10 @@ fi
pkgname=busybox-static-aarch64
pkgver=1.35.0
pkgrel=13
pkgrel=30
_arch="aarch64"
_mirror="http://uk.alpinelinux.org/alpine/"
_mirror="http://dl-4.alpinelinux.org/alpine/"
url="http://busybox.net"
license="GPL2"
@@ -32,5 +32,5 @@ package() {
}
sha512sums="
cea078b709b3bb1e1a4eec3e2b75ebaa9057131461cbf8be799f4840a510d8d0341cd218bfd154533c735f7ddc000b606ad590f44b5e997855e7e300d1b4effa busybox-static-1.35.0-r13-aarch64-edge.apk
d34c0d16d77bd18548e4b2764ab4bde59611480aaaab5a47f585158a91fad413ccfb7954d5ebcf4aa6e04fdda4621832f46e8b13e313ce1fd7b4b96b3298d425 busybox-static-1.35.0-r30-aarch64-edge.apk
"
+3 -3
View File
@@ -8,10 +8,10 @@ fi
pkgname=busybox-static-armhf
pkgver=1.35.0
pkgrel=13
pkgrel=30
_arch="armhf"
_mirror="http://uk.alpinelinux.org/alpine/"
_mirror="http://dl-4.alpinelinux.org/alpine/"
url="http://busybox.net"
license="GPL2"
@@ -32,5 +32,5 @@ package() {
}
sha512sums="
c62128c0c1bb4e9888342f079b4306f73ae6771173606e0a60802f95d31673f9bbf3426f301f2161c08c72137da5373bb6ea8acbf0b9ababc003aee4786d6229 busybox-static-1.35.0-r13-armhf-edge.apk
805bcf5416d70db8a68a90e85dbf9728213f4e996862ce9d4af3eea35ac25bc1bf6ecddb7dc18d2881dfda59ecfbc64bfbaf148022209f26eb034a10e65494aa busybox-static-1.35.0-r30-armhf-edge.apk
"
+3 -3
View File
@@ -8,10 +8,10 @@ fi
pkgname=busybox-static-armv7
pkgver=1.35.0
pkgrel=13
pkgrel=30
_arch="armv7"
_mirror="http://uk.alpinelinux.org/alpine/"
_mirror="http://dl-4.alpinelinux.org/alpine/"
url="http://busybox.net"
license="GPL2"
@@ -32,5 +32,5 @@ package() {
}
sha512sums="
5b1bca1f7d8c0c331c7a2712a909507c1cab8710fb5cce7199e584dbbc67612850e8c87edbdd8a0ca2d901819d0eab343ca9bb537b824eb438fc1d3b1faaa32b busybox-static-1.35.0-r13-armv7-edge.apk
1beffa9f0b7a93d72b793c3ebac99a6243ca1a385064388fe6189753210775ff65bd4be30a540b5e0fa85ea795b7e3ad42cf4f9446c52ca1db285eea59a84c1a busybox-static-1.35.0-r30-armv7-edge.apk
"
+2 -5
View File
@@ -1,4 +1,4 @@
From feb04e50d907683385cc4dc0163cf1d82258073a Mon Sep 17 00:00:00 2001
From 74c7b0df9971b6bc75d7d172c2819ffd21d51050 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
Date: Fri, 26 Jan 2018 20:32:50 +0000
Subject: [PATCH] posix_memalign
@@ -8,7 +8,7 @@ Subject: [PATCH] posix_memalign
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gcc/config/i386/pmm_malloc.h b/gcc/config/i386/pmm_malloc.h
index 1b0bfe37852..d7b2b19bb3c 100644
index 3b2e4f47915..20f790904a2 100644
--- a/gcc/config/i386/pmm_malloc.h
+++ b/gcc/config/i386/pmm_malloc.h
@@ -27,12 +27,13 @@
@@ -37,6 +37,3 @@ index 1b0bfe37852..d7b2b19bb3c 100644
return __ptr;
else
return NULL;
--
2.35.1
@@ -1,4 +1,4 @@
From d64825212f807435a4b2f8e068c0f65195c8e2e6 Mon Sep 17 00:00:00 2001
From dd1e75ff4ecda96957465b34681f245e818928bd Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 29 Mar 2013 08:59:00 +0400
Subject: [PATCH] gcc: poison-system-directories
@@ -21,15 +21,15 @@ Upstream-Status: Pending
gcc/configure | 16 ++++++++++++++++
gcc/configure.ac | 10 ++++++++++
gcc/doc/invoke.texi | 9 +++++++++
gcc/gcc.c | 2 ++
gcc/incpath.c | 21 +++++++++++++++++++++
gcc/gcc.cc | 2 ++
gcc/incpath.cc | 21 +++++++++++++++++++++
7 files changed, 68 insertions(+)
diff --git a/gcc/common.opt b/gcc/common.opt
index a75b44ee47e..d15105a73f3 100644
index 8a0dafc522d..0357868e22c 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -683,6 +683,10 @@ Wreturn-local-addr
@@ -710,6 +710,10 @@ Wreturn-local-addr
Common Var(warn_return_local_addr) Init(1) Warning
Warn about returning a pointer/reference to a local or temporary variable.
@@ -41,10 +41,10 @@ index a75b44ee47e..d15105a73f3 100644
Common Var(warn_shadow) Warning
Warn when one variable shadows another. Same as -Wshadow=global.
diff --git a/gcc/config.in b/gcc/config.in
index 2de5a463315..059c818c895 100644
index 64c27c9cfac..f0fbf123aa8 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -218,6 +218,12 @@
@@ -230,6 +230,12 @@
#endif
@@ -58,10 +58,10 @@ index 2de5a463315..059c818c895 100644
optimizer and back end) to be checked for dynamic type safety at runtime.
This is quite expensive. */
diff --git a/gcc/configure b/gcc/configure
index 708328e1670..4b977e313b5 100755
index 5ce0557719a..e9060112384 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -1020,6 +1020,7 @@ enable_maintainer_mode
@@ -1023,6 +1023,7 @@ enable_maintainer_mode
enable_link_mutex
enable_link_serialization
enable_version_specific_runtime_libs
@@ -69,7 +69,7 @@ index 708328e1670..4b977e313b5 100755
enable_plugin
enable_host_shared
enable_libquadmath_support
@@ -1782,6 +1783,8 @@ Optional Features:
@@ -1785,6 +1786,8 @@ Optional Features:
--enable-version-specific-runtime-libs
specify that runtime libraries should be installed
in a compiler-specific directory
@@ -78,7 +78,7 @@ index 708328e1670..4b977e313b5 100755
--enable-plugin enable plugin support
--enable-host-shared build host code as shared libraries
--disable-libquadmath-support
@@ -31790,6 +31793,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then :
@@ -31982,6 +31985,19 @@ if test "${enable_version_specific_runtime_libs+set}" = set; then :
fi
@@ -99,10 +99,10 @@ index 708328e1670..4b977e313b5 100755
diff --git a/gcc/configure.ac b/gcc/configure.ac
index df1c9cc3200..5461bab88a9 100644
index 23bee7010a3..75a7048045c 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -7311,6 +7311,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
@@ -7421,6 +7421,16 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
[specify that runtime libraries should be
installed in a compiler-specific directory])])
@@ -120,10 +120,10 @@ index df1c9cc3200..5461bab88a9 100644
AC_SUBST(subdirs)
AC_SUBST(srcdir)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index cf536a15116..7d3f1ccddf3 100644
index 07b440190c3..b2de464798a 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -369,6 +369,7 @@ Objective-C and Objective-C++ Dialects}.
@@ -379,6 +379,7 @@ Objective-C and Objective-C++ Dialects}.
-Wpacked -Wno-packed-bitfield-compat -Wpacked-not-aligned -Wpadded @gol
-Wparentheses -Wno-pedantic-ms-format @gol
-Wpointer-arith -Wno-pointer-compare -Wno-pointer-to-int-cast @gol
@@ -131,7 +131,7 @@ index cf536a15116..7d3f1ccddf3 100644
-Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls @gol
-Wrestrict -Wno-return-local-addr -Wreturn-type @gol
-Wno-scalar-storage-order -Wsequence-point @gol
@@ -7728,6 +7729,14 @@ made up of data only and thus requires no special treatment. But, for
@@ -8029,6 +8030,14 @@ made up of data only and thus requires no special treatment. But, for
most targets, it is made up of code and thus requires the stack to be
made executable in order for the program to work properly.
@@ -146,11 +146,11 @@ index cf536a15116..7d3f1ccddf3 100644
@item -Wfloat-equal
@opindex Wfloat-equal
@opindex Wno-float-equal
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 8ba410c9e17..a83ba34ac4b 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1152,6 +1152,8 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index bb07cc244e3..47fb5802194 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -1159,6 +1159,8 @@ proper position among the other output files. */
"%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \
"%X %{o*} %{e*} %{N} %{n} %{r}\
%{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!r:%{!nostartfiles:%S}}} \
@@ -159,10 +159,10 @@ index 8ba410c9e17..a83ba34ac4b 100644
%{static|no-pie|static-pie:} %@{L*} %(mfwrap) %(link_libgcc) " \
VTABLE_VERIFICATION_SPEC " " SANITIZER_EARLY_SPEC " %o "" \
%{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1):\
diff --git a/gcc/incpath.c b/gcc/incpath.c
index 446d280321d..fbfc0ce03b8 100644
--- a/gcc/incpath.c
+++ b/gcc/incpath.c
diff --git a/gcc/incpath.cc b/gcc/incpath.cc
index bd2a97938eb..c80f100f476 100644
--- a/gcc/incpath.cc
+++ b/gcc/incpath.cc
@@ -26,6 +26,7 @@
#include "intl.h"
#include "incpath.h"
@@ -171,7 +171,7 @@ index 446d280321d..fbfc0ce03b8 100644
/* Microsoft Windows does not natively support inodes.
VMS has non-numeric inodes. */
@@ -395,6 +396,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
@@ -399,6 +400,26 @@ merge_include_chains (const char *sysroot, cpp_reader *pfile, int verbose)
}
fprintf (stderr, _("End of search list.\n"));
}
@@ -198,6 +198,3 @@ index 446d280321d..fbfc0ce03b8 100644
}
/* Use given -I paths for #include "..." but not #include <...>, and
--
2.35.1
@@ -1,4 +1,4 @@
From 9675297b3a46b65a54e9df97f26ea445d53c67c6 Mon Sep 17 00:00:00 2001
From 40e45739e7d3787acd13b5b9a4c27d843de0ffe2 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:45:49 +0000
Subject: [PATCH] specs: turn on -Wl,-z,now by default
@@ -10,14 +10,14 @@ Binutils does not appear to have a similar option for enabling -z
now by default.
---
gcc/doc/invoke.texi | 3 +++
gcc/gcc.c | 1 +
gcc/gcc.cc | 1 +
2 files changed, 4 insertions(+)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 7d3f1ccddf3..485d2d6b742 100644
index b2de464798a..83bd1bde433 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -15921,6 +15921,9 @@ For example, @option{-Wl,-Map,output.map} passes @option{-Map output.map} to the
@@ -16872,6 +16872,9 @@ For example, @option{-Wl,-Map,output.map} passes @option{-Map output.map} to the
linker. When using the GNU linker, you can also get the same effect with
@option{-Wl,-Map=output.map}.
@@ -27,11 +27,11 @@ index 7d3f1ccddf3..485d2d6b742 100644
@item -u @var{symbol}
@opindex u
Pretend the symbol @var{symbol} is undefined, to force linking of
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a83ba34ac4b..faf9ce76b3d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1150,6 +1150,7 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 47fb5802194..d18b5d7b59a 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -1157,6 +1157,7 @@ proper position among the other output files. */
"%{flto|flto=*:%<fcompare-debug*} \
%{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \
"%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \
@@ -39,6 +39,3 @@ index a83ba34ac4b..faf9ce76b3d 100644
"%X %{o*} %{e*} %{N} %{n} %{r}\
%{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!r:%{!nostartfiles:%S}}} \
%{Wno-poison-system-directories:--no-poison-system-directories} \
--
2.35.1
@@ -1,19 +1,19 @@
From 4eb1b3849325b77c4cb66b675119299de35125bb Mon Sep 17 00:00:00 2001
From 666d0aeb808ac9c10d065ae7b196695c81a25a20 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:46:22 +0000
Subject: [PATCH] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC,
ObjC++, if the optimization level is > 0
---
gcc/c-family/c-cppbuiltin.c | 4 ++++
gcc/doc/invoke.texi | 6 ++++++
gcc/c-family/c-cppbuiltin.cc | 4 ++++
gcc/doc/invoke.texi | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index 11e015bdb87..de8b7bf246f 100644
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -1427,6 +1427,10 @@ c_cpp_builtins (cpp_reader *pfile)
diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc
index 4672ae8486a..573c021e1e8 100644
--- a/gcc/c-family/c-cppbuiltin.cc
+++ b/gcc/c-family/c-cppbuiltin.cc
@@ -1510,6 +1510,10 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
@@ -25,10 +25,10 @@ index 11e015bdb87..de8b7bf246f 100644
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 485d2d6b742..164929f7583 100644
index 83bd1bde433..dda299a9987 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -10225,6 +10225,12 @@ also turns on the following optimization flags:
@@ -10896,6 +10896,12 @@ also turns on the following optimization flags:
Please note the warning under @option{-fgcse} about
invoking @option{-O2} on programs that use computed gotos.
@@ -41,6 +41,3 @@ index 485d2d6b742..164929f7583 100644
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified
--
2.35.1
@@ -1,4 +1,4 @@
From 8de5d46c530ceca9f4add46d5cae3cd52c38eba3 Mon Sep 17 00:00:00 2001
From 75d1a35180cf0967f062765314bf091a64032062 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:46:56 +0000
Subject: [PATCH] On linux targets pass --as-needed by default to the linker,
@@ -18,11 +18,11 @@ Subject: [PATCH] On linux targets pass --as-needed by default to the linker,
gcc/config/rs6000/sysv4.h | 2 +-
gcc/config/s390/linux.h | 2 +-
gcc/config/sparc/linux.h | 2 +-
gcc/gcc.c | 28 ++++++++++++++++++++--------
gcc/gcc.cc | 28 ++++++++++++++++++++--------
14 files changed, 36 insertions(+), 19 deletions(-)
diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h
index 7f2529a2a1d..b097e1688aa 100644
index 5e4553d79f5..b516f3ef97f 100644
--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -35,6 +35,7 @@
@@ -34,7 +34,7 @@ index 7f2529a2a1d..b097e1688aa 100644
%{shared:-shared} \
%{symbolic:-Bsymbolic} \
diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h
index c1dae8ca2cf..a87dc740171 100644
index 17f16a55910..9ec667e9a5e 100644
--- a/gcc/config/alpha/linux-elf.h
+++ b/gcc/config/alpha/linux-elf.h
@@ -37,7 +37,7 @@ along with GCC; see the file COPYING3. If not see
@@ -47,7 +47,7 @@ index c1dae8ca2cf..a87dc740171 100644
%{shared:-shared} \
%{!shared: \
diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h
index 0c1c4e70b6b..8b581afacdd 100644
index df3da67c4f0..7532bc29f9b 100644
--- a/gcc/config/arm/linux-elf.h
+++ b/gcc/config/arm/linux-elf.h
@@ -70,6 +70,7 @@
@@ -59,7 +59,7 @@ index 0c1c4e70b6b..8b581afacdd 100644
SUBTARGET_EXTRA_LINK_SPEC
diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
index 5ebbf42a13d..902378e1bad 100644
index 857c0e077bf..8433e56c3e1 100644
--- a/gcc/config/gnu-user.h
+++ b/gcc/config/gnu-user.h
@@ -136,7 +136,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -87,7 +87,7 @@ index 5ebbf42a13d..902378e1bad 100644
#undef TARGET_F951_OPTIONS
diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h
index a23e7ab3eb7..12ac8cb93a9 100644
index 0102b2a6f3b..994414c1845 100644
--- a/gcc/config/i386/gnu-user.h
+++ b/gcc/config/i386/gnu-user.h
@@ -68,7 +68,7 @@ along with GCC; see the file COPYING3. If not see
@@ -100,7 +100,7 @@ index a23e7ab3eb7..12ac8cb93a9 100644
%{!static: \
%{!static-pie: \
diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
index f3e25b1412a..712b0f1c30e 100644
index abc8cf624ca..fe656aeae27 100644
--- a/gcc/config/i386/gnu-user64.h
+++ b/gcc/config/i386/gnu-user64.h
@@ -56,6 +56,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -112,7 +112,7 @@ index f3e25b1412a..712b0f1c30e 100644
%{!shared: \
%{!static: \
diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h
index ac40c3dfd3f..6e19e25c35a 100644
index 93510098ccc..3813e536423 100644
--- a/gcc/config/ia64/linux.h
+++ b/gcc/config/ia64/linux.h
@@ -58,7 +58,7 @@ do { \
@@ -125,7 +125,7 @@ index ac40c3dfd3f..6e19e25c35a 100644
%{!shared: \
%{!static: \
diff --git a/gcc/config/mips/gnu-user.h b/gcc/config/mips/gnu-user.h
index a390bcece83..be0ee289367 100644
index 6aad7192e69..e1256a55add 100644
--- a/gcc/config/mips/gnu-user.h
+++ b/gcc/config/mips/gnu-user.h
@@ -55,6 +55,7 @@ along with GCC; see the file COPYING3. If not see
@@ -137,7 +137,7 @@ index a390bcece83..be0ee289367 100644
%{!static: \
%{rdynamic:-export-dynamic} \
diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
index fce5b896e6e..ee29979dd34 100644
index 38803723ba9..3067ed6eac8 100644
--- a/gcc/config/riscv/linux.h
+++ b/gcc/config/riscv/linux.h
@@ -58,6 +58,7 @@ along with GCC; see the file COPYING3. If not see
@@ -149,10 +149,10 @@ index fce5b896e6e..ee29979dd34 100644
%{mno-relax:--no-relax} \
%{mbig-endian:-EB} \
diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
index e3f2cd254f6..43499ed29cf 100644
index b2a7afabc73..34ceb4e4fce 100644
--- a/gcc/config/rs6000/linux64.h
+++ b/gcc/config/rs6000/linux64.h
@@ -374,13 +374,13 @@ extern int dot_symbols;
@@ -377,13 +377,13 @@ extern int dot_symbols;
" -m elf64ppc")
#endif
@@ -169,10 +169,10 @@ index e3f2cd254f6..43499ed29cf 100644
%{rdynamic:-export-dynamic} \
-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}}} \
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 510abe169c5..3c1f3a8ec5d 100644
index 7e2519de5d4..61215a7a1b3 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -789,7 +789,7 @@ GNU_USER_TARGET_CC1_SPEC
@@ -788,7 +788,7 @@ GNU_USER_TARGET_CC1_SPEC
#define GNU_USER_DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
#endif
@@ -182,7 +182,7 @@ index 510abe169c5..3c1f3a8ec5d 100644
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h
index daa48fdfc2b..2fcfc5d770f 100644
index d7b7e7a7b02..d2287f14f2e 100644
--- a/gcc/config/s390/linux.h
+++ b/gcc/config/s390/linux.h
@@ -82,7 +82,7 @@ along with GCC; see the file COPYING3. If not see
@@ -195,7 +195,7 @@ index daa48fdfc2b..2fcfc5d770f 100644
%{!shared: \
%{static:-static} \
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h
index 2550d7ee8f0..7596d0b2757 100644
index 6a809e9092d..93bfb92d3ff 100644
--- a/gcc/config/sparc/linux.h
+++ b/gcc/config/sparc/linux.h
@@ -81,7 +81,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
@@ -207,11 +207,11 @@ index 2550d7ee8f0..7596d0b2757 100644
%{!mno-relax:%{!r:-relax}} \
%{!shared: \
%{!static: \
diff --git a/gcc/gcc.c b/gcc/gcc.c
index faf9ce76b3d..1ad5da6d769 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -737,8 +737,11 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index d18b5d7b59a..3b76311b544 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -744,8 +744,11 @@ proper position among the other output files. */
#ifdef LIBASAN_EARLY_SPEC
#define LIBASAN_SPEC STATIC_LIBASAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
@@ -225,7 +225,7 @@ index faf9ce76b3d..1ad5da6d769 100644
STATIC_LIBASAN_LIBS
#else
#define LIBASAN_SPEC "-lasan" STATIC_LIBASAN_LIBS
@@ -773,8 +776,11 @@ proper position among the other output files. */
@@ -780,8 +783,11 @@ proper position among the other output files. */
#ifdef LIBTSAN_EARLY_SPEC
#define LIBTSAN_SPEC STATIC_LIBTSAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
@@ -239,7 +239,7 @@ index faf9ce76b3d..1ad5da6d769 100644
STATIC_LIBTSAN_LIBS
#else
#define LIBTSAN_SPEC "-ltsan" STATIC_LIBTSAN_LIBS
@@ -791,8 +797,11 @@ proper position among the other output files. */
@@ -798,8 +804,11 @@ proper position among the other output files. */
#ifdef LIBLSAN_EARLY_SPEC
#define LIBLSAN_SPEC STATIC_LIBLSAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
@@ -253,7 +253,7 @@ index faf9ce76b3d..1ad5da6d769 100644
STATIC_LIBLSAN_LIBS
#else
#define LIBLSAN_SPEC "-llsan" STATIC_LIBLSAN_LIBS
@@ -807,8 +816,11 @@ proper position among the other output files. */
@@ -814,8 +823,11 @@ proper position among the other output files. */
#define STATIC_LIBUBSAN_LIBS \
" %{static-libubsan|static:%:include(libsanitizer.spec)%(link_libubsan)}"
#ifdef HAVE_LD_STATIC_DYNAMIC
@@ -267,6 +267,3 @@ index faf9ce76b3d..1ad5da6d769 100644
STATIC_LIBUBSAN_LIBS
#else
#define LIBUBSAN_SPEC "-lubsan" STATIC_LIBUBSAN_LIBS
--
2.35.1
@@ -1,4 +1,4 @@
From 85e12e3d32a44c3fd10b5327edd542972a179eec Mon Sep 17 00:00:00 2001
From c664283dd30949c5299d1c45bd5740bcfe993d22 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:47:43 +0000
Subject: [PATCH] Enable -Wformat and -Wformat-security by default.
@@ -8,10 +8,10 @@ Subject: [PATCH] Enable -Wformat and -Wformat-security by default.
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 2005b783c68..c5c6af427cc 100644
index 07da40ef43b..8683f706426 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -637,7 +637,7 @@ Warn about function calls with format strings that write past the end
@@ -692,7 +692,7 @@ Warn about function calls with format strings that write past the end
of the destination region. Same as -Wformat-overflow=1.
Wformat-security
@@ -20,7 +20,7 @@ index 2005b783c68..c5c6af427cc 100644
Warn about possible security problems with format functions.
Wformat-signedness
@@ -658,7 +658,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++
@@ -713,7 +713,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++
Warn about zero-length formats.
Wformat=
@@ -29,6 +29,3 @@ index 2005b783c68..c5c6af427cc 100644
Warn about printf/scanf/strftime/strfmon format string anomalies.
Wformat-overflow=
--
2.35.1
@@ -1,4 +1,4 @@
From f1e92f5f3576779776c9f3d6aeef76e1569e719a Mon Sep 17 00:00:00 2001
From e4d0ec43e772b6dc7c3708aed5309897df26a125 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:48:24 +0000
Subject: [PATCH] Enable -Wtrampolines by default.
@@ -8,10 +8,10 @@ Subject: [PATCH] Enable -Wtrampolines by default.
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index d15105a73f3..29f9504cb68 100644
index 0357868e22c..6d5e5eebe60 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -775,7 +775,7 @@ Common Var(warn_system_headers) Warning
@@ -802,7 +802,7 @@ Common Var(warn_system_headers) Warning
Do not suppress warnings from system headers.
Wtrampolines
@@ -19,7 +19,4 @@ index d15105a73f3..29f9504cb68 100644
+Common Var(warn_trampolines) Init(1) Warning
Warn whenever a trampoline is generated.
Wtype-limits
--
2.35.1
Wtrivial-auto-var-init
@@ -1,19 +1,19 @@
From 3503fd734a33b67ec6a9fdc2c52bb8310864b119 Mon Sep 17 00:00:00 2001
From 27e5d5bd3fed9006a2958d2b09750d15ad07383b Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:49:40 +0000
Subject: [PATCH] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding
Change the buffer size.
---
gcc/gcc.c | 8 +++++++-
gcc/gcc.cc | 8 +++++++-
gcc/params.opt | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 1ad5da6d769..99314032ec2 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -989,6 +989,12 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 3b76311b544..cc99d0b7aa1 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -996,6 +996,12 @@ proper position among the other output files. */
#define LINK_GCC_C_SEQUENCE_SPEC "%G %{!nolibc:%L %G}"
#endif
@@ -26,7 +26,7 @@ index 1ad5da6d769..99314032ec2 100644
#ifndef LINK_SSP_SPEC
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
@@ -1288,7 +1294,7 @@ static const char *cc1_options =
@@ -1295,7 +1301,7 @@ static const char *cc1_options =
%{-version:--version}\
%{-help=*:--help=%*}\
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %w%b.s}}}\
@@ -36,10 +36,10 @@ index 1ad5da6d769..99314032ec2 100644
%{fprofile-arcs|fprofile-generate*|coverage:\
%{!fprofile-update=single:\
diff --git a/gcc/params.opt b/gcc/params.opt
index 8ba281b4cfa..bab39cdf8a2 100644
index b88e1372005..82a7e25dd2f 100644
--- a/gcc/params.opt
+++ b/gcc/params.opt
@@ -946,7 +946,7 @@ Common Joined UInteger Var(param_ssa_name_def_chain_limit) Init(512) Param Optim
@@ -1012,7 +1012,7 @@ Common Joined UInteger Var(param_ssa_name_def_chain_limit) Init(512) Param Optim
The maximum number of SSA_NAME assignments to follow in determining a value.
-param=ssp-buffer-size=
@@ -48,6 +48,3 @@ index 8ba281b4cfa..bab39cdf8a2 100644
The lower bound for a buffer to be considered for stack smashing protection.
-param=stack-clash-protection-guard-size=
--
2.35.1
@@ -1,4 +1,4 @@
From c4dd51fe15a938fdd76d781a4eede2a9205eacbc Mon Sep 17 00:00:00 2001
From 83bf2a316222e2fe0b72968cadf4e334d41173f6 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:50:33 +0000
Subject: [PATCH] Ensure that msgfmt doesn't encounter problems during gcc
@@ -26,7 +26,7 @@ https://bugs.gentoo.org/295480
2 files changed, 2 insertions(+)
diff --git a/libstdc++-v3/po/Makefile.am b/libstdc++-v3/po/Makefile.am
index ab716ff04ea..e595268d9fc 100644
index 8f51544989e..5329804d136 100644
--- a/libstdc++-v3/po/Makefile.am
+++ b/libstdc++-v3/po/Makefile.am
@@ -38,6 +38,7 @@ MSGFMT = msgfmt
@@ -38,10 +38,10 @@ index ab716ff04ea..e595268d9fc 100644
all-local: all-local-$(USE_NLS)
diff --git a/libstdc++-v3/po/Makefile.in b/libstdc++-v3/po/Makefile.in
index 8edd2e05639..63f61fcf96f 100644
index 243f3db7b72..822210781fa 100644
--- a/libstdc++-v3/po/Makefile.in
+++ b/libstdc++-v3/po/Makefile.in
@@ -553,6 +553,7 @@ uninstall-am:
@@ -561,6 +561,7 @@ uninstall-am:
.po.mo:
@@ -49,6 +49,3 @@ index 8edd2e05639..63f61fcf96f 100644
$(MSGFMT) -o $@ $<
all-local: all-local-$(USE_NLS)
--
2.35.1
@@ -1,4 +1,4 @@
From 0a1fd78184f00fb77dac00dabe98eb025620efc2 Mon Sep 17 00:00:00 2001
From 190064993cd8ddbd48015c1fc1916e4110a97733 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:52:07 +0000
Subject: [PATCH] Don't declare asprintf if defined as a macro.
@@ -8,7 +8,7 @@ Subject: [PATCH] Don't declare asprintf if defined as a macro.
1 file changed, 3 insertions(+)
diff --git a/include/libiberty.h b/include/libiberty.h
index f4c0fe11d6f..cf4b1043e4d 100644
index a65ced9c820..eb20ab0f95f 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -652,8 +652,11 @@ extern void *bsearch_r (const void *, const void *,
@@ -23,6 +23,3 @@ index f4c0fe11d6f..cf4b1043e4d 100644
/* Like asprintf but allocates memory without fail. This works like
xmalloc. */
--
2.35.1
@@ -1,4 +1,4 @@
From f81d67f6fe1f1066642606209c882b333d937cb7 Mon Sep 17 00:00:00 2001
From 838e1daa955d9013c462be3471497cb39641e951 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:53:00 +0000
Subject: [PATCH] libiberty: copy PIC objects during build process
@@ -8,10 +8,10 @@ Subject: [PATCH] libiberty: copy PIC objects during build process
1 file changed, 1 insertion(+)
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index 4f1213b983b..d0224649d30 100644
index 1b17c2e3a47..8db1176df2e 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -264,6 +264,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
@@ -265,6 +265,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
$(AR) $(AR_FLAGS) $(TARGETLIB) \
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
$(RANLIB) $(TARGETLIB); \
@@ -19,6 +19,3 @@ index 4f1213b983b..d0224649d30 100644
cd ..; \
else true; fi
--
2.35.1
@@ -1,4 +1,4 @@
From 3b732288ce771348cbcc9fb633a36b7aff2b4ad4 Mon Sep 17 00:00:00 2001
From 717346fbbd6642ba6b0c3af2deb3771794346507 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:53:36 +0000
Subject: [PATCH] libitm: disable FORTIFY
@@ -8,7 +8,7 @@ Subject: [PATCH] libitm: disable FORTIFY
1 file changed, 10 insertions(+)
diff --git a/libitm/configure.tgt b/libitm/configure.tgt
index a3d84896cc5..ecb281d5919 100644
index 06e90973ef3..669e64236c3 100644
--- a/libitm/configure.tgt
+++ b/libitm/configure.tgt
@@ -47,6 +47,16 @@ if test "$gcc_cv_have_tls" = yes ; then
@@ -28,6 +28,3 @@ index a3d84896cc5..ecb281d5919 100644
# Map the target cpu to an ARCH sub-directory. At the same time,
# work out any special compilation flags as necessary.
case "${target_cpu}" in
--
2.35.1
+14 -17
View File
@@ -1,33 +1,33 @@
From a3e556187d0a8e9d39544f023960eca0f07d3e83 Mon Sep 17 00:00:00 2001
From 048c394eb709bfd216e307c1b92ac7f8a7e7758b Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
Date: Sat, 24 Oct 2015 20:09:53 +0000
Subject: [PATCH] libgcc_s
---
gcc/config/i386/i386-expand.c | 4 ++--
libgcc/config/i386/cpuinfo.c | 6 +++---
libgcc/config/i386/t-linux | 2 +-
gcc/config/i386/i386-expand.cc | 4 ++--
libgcc/config/i386/cpuinfo.c | 6 +++---
libgcc/config/i386/t-linux | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/config/i386/i386-expand.c b/gcc/config/i386/i386-expand.c
index 1772fb16c9a..77e04b0c2df 100644
--- a/gcc/config/i386/i386-expand.c
+++ b/gcc/config/i386/i386-expand.c
@@ -11066,10 +11066,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
index 31780b6daf7..d89898846e1 100644
--- a/gcc/config/i386/i386-expand.cc
+++ b/gcc/config/i386/i386-expand.cc
@@ -12338,10 +12338,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
{
case IX86_BUILTIN_CPU_INIT:
{
- /* Make it call __cpu_indicator_init in libgcc. */
+ /* Make it call __cpu_indicator_init_local in libgcc.a. */
- /* Make it call __cpu_indicator_init in libgcc. */
+ /* Make it call __cpu_indicator_init in libgcc.a. */
tree call_expr, fndecl, type;
type = build_function_type_list (integer_type_node, NULL_TREE);
type = build_function_type_list (integer_type_node, NULL_TREE);
- fndecl = build_fn_decl ("__cpu_indicator_init", type);
+ fndecl = build_fn_decl ("__cpu_indicator_init_local", type);
call_expr = build_call_expr (fndecl, 0);
call_expr = build_call_expr (fndecl, 0);
return expand_expr (call_expr, target, mode, EXPAND_NORMAL);
}
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
index ef463848f9d..1a3de052c80 100644
index dab1d98060f..cf824b4114a 100644
--- a/libgcc/config/i386/cpuinfo.c
+++ b/libgcc/config/i386/cpuinfo.c
@@ -63,7 +63,7 @@ __cpu_indicator_init (void)
@@ -52,6 +52,3 @@ index 8506a635790..564296f788e 100644
-HOST_LIBGCC2_CFLAGS += -mlong-double-80 -DUSE_ELF_SYMVER $(CET_FLAGS)
+HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS)
CRTSTUFF_T_CFLAGS += $(CET_FLAGS)
--
2.35.1
+5 -8
View File
@@ -1,4 +1,4 @@
From f520e67fba621f213146271408ff3210b3527176 Mon Sep 17 00:00:00 2001
From db28b1e0f3b06325026ec5b5e7cdca4e9992e05c Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
Date: Sat, 7 Nov 2015 02:08:05 +0000
Subject: [PATCH] nopie
@@ -9,10 +9,10 @@ Subject: [PATCH] nopie
2 files changed, 40 insertions(+)
diff --git a/gcc/configure b/gcc/configure
index 4b977e313b5..592e81e40f6 100755
index e9060112384..2f6b3265a6c 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -32300,6 +32300,33 @@ fi
@@ -32497,6 +32497,33 @@ fi
$as_echo "$gcc_cv_no_pie" >&6; }
if test "$gcc_cv_no_pie" = "yes"; then
NO_PIE_FLAG="-no-pie"
@@ -47,10 +47,10 @@ index 4b977e313b5..592e81e40f6 100755
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 5461bab88a9..1577529ffb7 100644
index 75a7048045c..e683d3a7a5f 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -7571,6 +7571,19 @@ AC_CACHE_CHECK([for -no-pie option],
@@ -7681,6 +7681,19 @@ AC_CACHE_CHECK([for -no-pie option],
LDFLAGS="$saved_LDFLAGS"])
if test "$gcc_cv_no_pie" = "yes"; then
NO_PIE_FLAG="-no-pie"
@@ -70,6 +70,3 @@ index 5461bab88a9..1577529ffb7 100644
fi
AC_SUBST([NO_PIE_FLAG])
--
2.35.1
@@ -1,4 +1,4 @@
From 26daa73d678b87a6950df1d79d171ba40ecbce15 Mon Sep 17 00:00:00 2001
From 686e85d8a05f9f9e6c983afb13f937bd88fe84dd Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:18:32 +0000
Subject: [PATCH] dlang: use libucontext on mips64
@@ -8,7 +8,7 @@ Subject: [PATCH] dlang: use libucontext on mips64
1 file changed, 1 insertion(+)
diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt
index 0643daeb613..b74d9fb3f25 100644
index 0063dd23249..c5e782a1238 100644
--- a/libphobos/configure.tgt
+++ b/libphobos/configure.tgt
@@ -38,6 +38,7 @@ case "${target}" in
@@ -19,6 +19,3 @@ index 0643daeb613..b74d9fb3f25 100644
;;
power*-*-freebsd*)
LIBPHOBOS_SUPPORTED=yes
--
2.35.1
@@ -1,25 +0,0 @@
From 37310cabb8bc7256899c4d45cc68a47ca2a3232b Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:57:09 +0000
Subject: [PATCH] libffi: use __linux__ instead of __gnu_linux__ for musl
---
libffi/src/closures.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libffi/src/closures.c b/libffi/src/closures.c
index 721ff00ea43..22a699c6340 100644
--- a/libffi/src/closures.c
+++ b/libffi/src/closures.c
@@ -34,7 +34,7 @@
#include <ffi_common.h>
#if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE
-# if __gnu_linux__ && !defined(__ANDROID__)
+# if __linux__ && !defined(__ANDROID__)
/* This macro indicates it may be forbidden to map anonymous memory
with both write and execute permission. Code compiled when this
option is defined will attempt to map such pages once, but if it
--
2.35.1
@@ -1,4 +1,4 @@
From 374a19de60fcd5c31321c3f4d26dcc4b631e8c3f Mon Sep 17 00:00:00 2001
From fd642f8cd61849a9dc169588be5562ceda96a889 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:59:16 +0000
Subject: [PATCH] ada: fix shared linking
@@ -8,7 +8,7 @@ Subject: [PATCH] ada: fix shared linking
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/ada/link.c b/gcc/ada/link.c
index 5cd5ef64f56..1c611a82cab 100644
index a7574efb472..0ad0d66463c 100644
--- a/gcc/ada/link.c
+++ b/gcc/ada/link.c
@@ -107,9 +107,9 @@ const char *__gnat_default_libgcc_subdir = "lib";
@@ -37,6 +37,3 @@ index 5cd5ef64f56..1c611a82cab 100644
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
const char *__gnat_object_library_extension = ".a";
--
2.35.1
@@ -1,425 +0,0 @@
From 586e82425a024d85d1bd9952ca51d8a671aa9b5d Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:57:51 +0000
Subject: [PATCH] dlang: update zlib binding
---
libphobos/src/std/zlib.d | 266 ++++++++++++++++++++++++++++-----------
1 file changed, 196 insertions(+), 70 deletions(-)
diff --git a/libphobos/src/std/zlib.d b/libphobos/src/std/zlib.d
index e6cce240fd5..bd2fe37ebec 100644
--- a/libphobos/src/std/zlib.d
+++ b/libphobos/src/std/zlib.d
@@ -1,7 +1,7 @@
// Written in the D programming language.
/**
- * Compress/decompress data using the $(HTTP www._zlib.net, _zlib library).
+ * Compress/decompress data using the $(HTTP www.zlib.net, zlib library).
*
* Examples:
*
@@ -43,12 +43,12 @@
* References:
* $(HTTP en.wikipedia.org/wiki/Zlib, Wikipedia)
*
- * Copyright: Copyright Digital Mars 2000 - 2011.
+ * Copyright: Copyright The D Language Foundation 2000 - 2011.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: $(HTTP digitalmars.com, Walter Bright)
- * Source: $(PHOBOSSRC std/_zlib.d)
+ * Source: $(PHOBOSSRC std/zlib.d)
*/
-/* Copyright Digital Mars 2000 - 2011.
+/* Copyright The D Language Foundation 2000 - 2011.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@@ -75,9 +75,9 @@ enum
class ZlibException : Exception
{
- this(int errnum)
- { string msg;
-
+ private static string getmsg(int errnum) nothrow @nogc pure @safe
+ {
+ string msg;
switch (errnum)
{
case Z_STREAM_END: msg = "stream end"; break;
@@ -90,7 +90,12 @@ class ZlibException : Exception
case Z_VERSION_ERROR: msg = "version error"; break;
default: msg = "unknown error"; break;
}
- super(msg);
+ return msg;
+ }
+
+ this(int errnum)
+ {
+ super(getmsg(errnum));
}
}
@@ -104,7 +109,7 @@ class ZlibException : Exception
* buf = buffer containing input data
*
* Returns:
- * A $(D uint) checksum for the provided input data and starting checksum
+ * A `uint` checksum for the provided input data and starting checksum
*
* See_Also:
* $(LINK http://en.wikipedia.org/wiki/Adler-32)
@@ -147,7 +152,7 @@ uint adler32(uint adler, const(void)[] buf)
* buf = buffer containing input data
*
* Returns:
- * A $(D uint) checksum for the provided input data and starting checksum
+ * A `uint` checksum for the provided input data and starting checksum
*
* See_Also:
* $(LINK http://en.wikipedia.org/wiki/Cyclic_redundancy_check)
@@ -191,13 +196,14 @@ uint crc32(uint crc, const(void)[] buf)
ubyte[] compress(const(void)[] srcbuf, int level)
in
{
- assert(-1 <= level && level <= 9);
+ assert(-1 <= level && level <= 9, "Compression level needs to be within [-1, 9].");
}
-body
+do
{
import core.memory : GC;
+ import std.array : uninitializedArray;
auto destlen = srcbuf.length + ((srcbuf.length + 1023) / 1024) + 12;
- auto destbuf = new ubyte[destlen];
+ auto destbuf = uninitializedArray!(ubyte[])(destlen);
auto err = etc.c.zlib.compress2(destbuf.ptr, &destlen, cast(ubyte *) srcbuf.ptr, srcbuf.length, level);
if (err)
{
@@ -276,7 +282,7 @@ void[] uncompress(const(void)[] srcbuf, size_t destlen = 0u, int winbits = 15)
throw new ZlibException(err);
}
}
- assert(0);
+ assert(0, "Unreachable code");
}
@system unittest
@@ -370,9 +376,9 @@ class Compress
this(int level, HeaderFormat header = HeaderFormat.deflate)
in
{
- assert(1 <= level && level <= 9);
+ assert(1 <= level && level <= 9, "Legal compression level are in [1, 9].");
}
- body
+ do
{
this.level = level;
this.gzip = header == HeaderFormat.gzip;
@@ -406,6 +412,7 @@ class Compress
const(void)[] compress(const(void)[] buf)
{
import core.memory : GC;
+ import std.array : uninitializedArray;
int err;
ubyte[] destbuf;
@@ -420,7 +427,7 @@ class Compress
inited = 1;
}
- destbuf = new ubyte[zs.avail_in + buf.length];
+ destbuf = uninitializedArray!(ubyte[])(zs.avail_in + buf.length);
zs.next_out = destbuf.ptr;
zs.avail_out = to!uint(destbuf.length);
@@ -461,9 +468,10 @@ class Compress
void[] flush(int mode = Z_FINISH)
in
{
- assert(mode == Z_FINISH || mode == Z_SYNC_FLUSH || mode == Z_FULL_FLUSH);
+ assert(mode == Z_FINISH || mode == Z_SYNC_FLUSH || mode == Z_FULL_FLUSH,
+ "Mode must be either Z_FINISH, Z_SYNC_FLUSH or Z_FULL_FLUSH.");
}
- body
+ do
{
import core.memory : GC;
ubyte[] destbuf;
@@ -523,6 +531,7 @@ class UnCompress
z_stream zs;
int inited;
int done;
+ bool inputEnded;
size_t destbufsize;
HeaderFormat format;
@@ -571,16 +580,16 @@ class UnCompress
const(void)[] uncompress(const(void)[] buf)
in
{
- assert(!done);
+ assert(!done, "Buffer has been flushed.");
}
- body
+ do
{
+ if (inputEnded || !buf.length)
+ return null;
+
import core.memory : GC;
+ import std.array : uninitializedArray;
int err;
- ubyte[] destbuf;
-
- if (buf.length == 0)
- return null;
if (!inited)
{
@@ -598,26 +607,152 @@ class UnCompress
if (!destbufsize)
destbufsize = to!uint(buf.length) * 2;
- destbuf = new ubyte[zs.avail_in * 2 + destbufsize];
- zs.next_out = destbuf.ptr;
- zs.avail_out = to!uint(destbuf.length);
-
- if (zs.avail_in)
- buf = zs.next_in[0 .. zs.avail_in] ~ cast(ubyte[]) buf;
+ auto destbuf = uninitializedArray!(ubyte[])(destbufsize);
+ size_t destFill;
zs.next_in = cast(ubyte*) buf.ptr;
zs.avail_in = to!uint(buf.length);
- err = inflate(&zs, Z_NO_FLUSH);
- if (err != Z_STREAM_END && err != Z_OK)
+ while (true)
{
- GC.free(destbuf.ptr);
- error(err);
+ auto oldAvailIn = zs.avail_in;
+
+ zs.next_out = destbuf[destFill .. $].ptr;
+ zs.avail_out = to!uint(destbuf.length - destFill);
+
+ err = inflate(&zs, Z_NO_FLUSH);
+ if (err == Z_STREAM_END)
+ {
+ inputEnded = true;
+ break;
+ }
+ else if (err != Z_OK)
+ {
+ GC.free(destbuf.ptr);
+ error(err);
+ }
+ else if (!zs.avail_in)
+ break;
+
+ /*
+ According to the zlib manual inflate() stops when either there's
+ no more data to uncompress or the output buffer is full
+ So at this point, the output buffer is too full
+ */
+
+ destFill = destbuf.length;
+
+ if (destbuf.capacity)
+ {
+ if (destbuf.length < destbuf.capacity)
+ destbuf.length = destbuf.capacity;
+ else
+ {
+ auto newLength = GC.extend(destbuf.ptr, destbufsize, destbufsize);
+
+ if (newLength && destbuf.length < destbuf.capacity)
+ destbuf.length = destbuf.capacity;
+ else
+ destbuf.length += destbufsize;
+ }
+ }
+ else
+ destbuf.length += destbufsize;
}
+
destbuf.length = destbuf.length - zs.avail_out;
return destbuf;
}
+ // Test for issues 3191 and 9505
+ @system unittest
+ {
+ import std.algorithm.comparison;
+ import std.array;
+ import std.file;
+ import std.zlib;
+
+ // Data that can be easily compressed
+ ubyte[1024] originalData;
+
+ // This should yield a compression ratio of at least 1/2
+ auto compressedData = compress(originalData, 9);
+ assert(compressedData.length < originalData.length / 2,
+ "The compression ratio is too low to accurately test this situation");
+
+ auto chunkSize = compressedData.length / 4;
+ assert(chunkSize < compressedData.length,
+ "The length of the compressed data is too small to accurately test this situation");
+
+ auto decompressor = new UnCompress();
+ ubyte[originalData.length] uncompressedData;
+ ubyte[] reusedBuf;
+ int progress;
+
+ reusedBuf.length = chunkSize;
+
+ for (int i = 0; i < compressedData.length; i += chunkSize)
+ {
+ auto len = min(chunkSize, compressedData.length - i);
+ // simulate reading from a stream in small chunks
+ reusedBuf[0 .. len] = compressedData[i .. i + len];
+
+ // decompress using same input buffer
+ auto chunk = decompressor.uncompress(reusedBuf);
+ assert(progress + chunk.length <= originalData.length,
+ "The uncompressed result is bigger than the original data");
+
+ uncompressedData[progress .. progress + chunk.length] = cast(const ubyte[]) chunk[];
+ progress += chunk.length;
+ }
+
+ auto chunk = decompressor.flush();
+ assert(progress + chunk.length <= originalData.length,
+ "The uncompressed result is bigger than the original data");
+
+ uncompressedData[progress .. progress + chunk.length] = cast(const ubyte[]) chunk[];
+ progress += chunk.length;
+
+ assert(progress == originalData.length,
+ "The uncompressed and the original data sizes differ");
+ assert(originalData[] == uncompressedData[],
+ "The uncompressed and the original data differ");
+ }
+
+ @system unittest
+ {
+ ubyte[1024] invalidData;
+ auto decompressor = new UnCompress();
+
+ try
+ {
+ auto uncompressedData = decompressor.uncompress(invalidData);
+ }
+ catch (ZlibException e)
+ {
+ assert(e.msg == "data error");
+ return;
+ }
+
+ assert(false, "Corrupted data didn't result in an error");
+ }
+
+ @system unittest
+ {
+ ubyte[2014] originalData = void;
+ auto compressedData = compress(originalData, 9);
+
+ auto decompressor = new UnCompress();
+ auto uncompressedData = decompressor.uncompress(compressedData ~ cast(ubyte[]) "whatever");
+
+ assert(originalData.length == uncompressedData.length,
+ "The uncompressed and the original data sizes differ");
+ assert(originalData[] == uncompressedData[],
+ "The uncompressed and the original data differ");
+ assert(!decompressor.uncompress("whatever").length,
+ "Compression continued after the end");
+ }
+
/**
* Decompress and return any remaining data.
* The returned data should be appended to that returned by uncompress().
@@ -626,49 +761,40 @@ class UnCompress
void[] flush()
in
{
- assert(!done);
+ assert(!done, "Buffer has been flushed before.");
}
out
{
- assert(done);
+ assert(done, "Flushing failed.");
}
- body
+ do
{
- import core.memory : GC;
- ubyte[] extra;
- ubyte[] destbuf;
- int err;
-
done = 1;
- if (!inited)
- return null;
+ return null;
+ }
- L1:
- destbuf = new ubyte[zs.avail_in * 2 + 100];
- zs.next_out = destbuf.ptr;
- zs.avail_out = to!uint(destbuf.length);
+ /// Returns true if all input data has been decompressed and no further data
+ /// can be decompressed (inflate() returned Z_STREAM_END)
+ @property bool empty() const
+ {
+ return inputEnded;
+ }
- err = etc.c.zlib.inflate(&zs, Z_NO_FLUSH);
- if (err == Z_OK && zs.avail_out == 0)
- {
- extra ~= destbuf;
- goto L1;
- }
- if (err != Z_STREAM_END)
- {
- GC.free(destbuf.ptr);
- if (err == Z_OK)
- err = Z_BUF_ERROR;
- error(err);
- }
- destbuf = destbuf.ptr[0 .. zs.next_out - destbuf.ptr];
- err = etc.c.zlib.inflateEnd(&zs);
- inited = 0;
- if (err)
- error(err);
- if (extra.length)
- destbuf = extra ~ destbuf;
- return destbuf;
+ ///
+ @system unittest
+ {
+ // some random data
+ ubyte[1024] originalData = void;
+
+ // append garbage data (or don't, this works in both cases)
+ auto compressedData = cast(ubyte[]) compress(originalData) ~ cast(ubyte[]) "whatever";
+
+ auto decompressor = new UnCompress();
+ auto uncompressedData = decompressor.uncompress(compressedData);
+
+ assert(uncompressedData[] == originalData[],
+ "The uncompressed and the original data differ");
+ assert(decompressor.empty, "The UnCompressor reports not being done");
}
}
--
2.35.1
@@ -1,4 +1,4 @@
From ad053bc46b535e78397f992e3c2c1d28c1ebd1f4 Mon Sep 17 00:00:00 2001
From a547632f5c7caec4a164e8d5e5b568fb7a461365 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 06:59:43 +0000
Subject: [PATCH] build: fix CXXFLAGS_FOR_BUILD passing
@@ -8,10 +8,10 @@ Subject: [PATCH] build: fix CXXFLAGS_FOR_BUILD passing
1 file changed, 1 insertion(+)
diff --git a/Makefile.in b/Makefile.in
index 047be0255e2..426949aa91c 100644
index 593495e1650..b96f60e33e2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -170,6 +170,7 @@ BUILD_EXPORTS = \
@@ -176,6 +176,7 @@ BUILD_EXPORTS = \
# built for the build system to override those in BASE_FLAGS_TO_PASS.
EXTRA_BUILD_FLAGS = \
CFLAGS="$(CFLAGS_FOR_BUILD)" \
@@ -19,6 +19,3 @@ index 047be0255e2..426949aa91c 100644
LDFLAGS="$(LDFLAGS_FOR_BUILD)"
# This is the list of directories to built for the host system.
--
2.35.1
@@ -1,4 +1,4 @@
From 18d44a7f8d801cc6926a73e2dda2f0ce859dc561 Mon Sep 17 00:00:00 2001
From 5bd37f8ee93a0fe1a3f841f48ed6626e7e0aa19d Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 07:01:06 +0000
Subject: [PATCH] add fortify-headers paths
@@ -8,10 +8,10 @@ Subject: [PATCH] add fortify-headers paths
1 file changed, 2 insertions(+)
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 4e1db60fced..7fcf402b416 100644
index 74f70793d90..61b07f319f6 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -167,6 +167,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -172,6 +172,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
@@ -20,6 +20,3 @@ index 4e1db60fced..7fcf402b416 100644
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
--
2.35.1
@@ -1,38 +0,0 @@
From caeae8288593dbd5a1a6d93508d875eb0d8fdf49 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:19:12 +0000
Subject: [PATCH] dlang: libdruntime: define fcntl.h constants for mips64
---
libphobos/libdruntime/core/sys/posix/fcntl.d | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/libphobos/libdruntime/core/sys/posix/fcntl.d b/libphobos/libdruntime/core/sys/posix/fcntl.d
index 59df921ba41..9ee9f943948 100644
--- a/libphobos/libdruntime/core/sys/posix/fcntl.d
+++ b/libphobos/libdruntime/core/sys/posix/fcntl.d
@@ -871,6 +871,21 @@ else version (CRuntime_Musl)
F_SETLKW = 7,
}
}
+ else version (MIPS_Any)
+ {
+ enum
+ {
+ O_DIRECTORY = 0x010000, // octal 0200000
+ O_NOFOLLOW = 0x020000, // octal 0400000
+ O_DIRECT = 0x008000, // octal 0100000
+ O_LARGEFILE = 0x002000, // octal 0020000
+ O_TMPFILE = 0x410000, // octal 020200000
+
+ F_GETLK = 33,
+ F_SETLK = 34,
+ F_SETLKW = 35,
+ }
+ }
else
static assert(0, "Platform not supported");
--
2.35.1
@@ -1,4 +1,4 @@
From 38d27ebdcc5a8bea0807b5d56203f0ea5e16868f Mon Sep 17 00:00:00 2001
From d2577dc78a1f159e5c41fd0b53e73fa0e264cb52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Fri, 21 Aug 2020 07:03:00 +0000
Subject: [PATCH] Alpine musl package provides libssp_nonshared.a. We link to
@@ -9,14 +9,14 @@ Subject: [PATCH] Alpine musl package provides libssp_nonshared.a. We link to
stack-protector flag usage.
---
gcc/gcc.c | 3 +--
gcc/gcc.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 99314032ec2..6e91767efe8 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -997,8 +997,7 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index cc99d0b7aa1..c60a75371f8 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -1004,8 +1004,7 @@ proper position among the other output files. */
#ifndef LINK_SSP_SPEC
#ifdef TARGET_LIBC_PROVIDES_SSP
@@ -26,6 +26,3 @@ index 99314032ec2..6e91767efe8 100644
#else
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
"|fstack-protector-strong|fstack-protector-explicit" \
--
2.35.1
@@ -1,18 +1,18 @@
From 0cc2a1befaf343e5ce1cbc15bd247eee812bdf33 Mon Sep 17 00:00:00 2001
From bbd5c529ef878c2d6096fd4949616714eb82683a Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 07:03:42 +0000
Subject: [PATCH] DP: Use --push-state/--pop-state for gold as well when
linking libtsan.
---
gcc/gcc.c | 16 ++++++++--------
gcc/gcc.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 6e91767efe8..22dbbf85850 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -738,10 +738,10 @@ proper position among the other output files. */
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index c60a75371f8..735b2b1bba1 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -745,10 +745,10 @@ proper position among the other output files. */
#define LIBASAN_SPEC STATIC_LIBASAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
#define LIBASAN_SPEC "%{static-libasan:" LD_STATIC_OPTION "}" \
@@ -25,7 +25,7 @@ index 6e91767efe8..22dbbf85850 100644
STATIC_LIBASAN_LIBS
#else
#define LIBASAN_SPEC "-lasan" STATIC_LIBASAN_LIBS
@@ -777,10 +777,10 @@ proper position among the other output files. */
@@ -784,10 +784,10 @@ proper position among the other output files. */
#define LIBTSAN_SPEC STATIC_LIBTSAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
#define LIBTSAN_SPEC "%{static-libtsan:" LD_STATIC_OPTION "}" \
@@ -38,7 +38,7 @@ index 6e91767efe8..22dbbf85850 100644
STATIC_LIBTSAN_LIBS
#else
#define LIBTSAN_SPEC "-ltsan" STATIC_LIBTSAN_LIBS
@@ -798,10 +798,10 @@ proper position among the other output files. */
@@ -805,10 +805,10 @@ proper position among the other output files. */
#define LIBLSAN_SPEC STATIC_LIBLSAN_LIBS
#elif defined(HAVE_LD_STATIC_DYNAMIC)
#define LIBLSAN_SPEC "%{static-liblsan:" LD_STATIC_OPTION "}" \
@@ -51,7 +51,7 @@ index 6e91767efe8..22dbbf85850 100644
STATIC_LIBLSAN_LIBS
#else
#define LIBLSAN_SPEC "-llsan" STATIC_LIBLSAN_LIBS
@@ -817,10 +817,10 @@ proper position among the other output files. */
@@ -824,10 +824,10 @@ proper position among the other output files. */
" %{static-libubsan|static:%:include(libsanitizer.spec)%(link_libubsan)}"
#ifdef HAVE_LD_STATIC_DYNAMIC
#define LIBUBSAN_SPEC "%{static-libubsan:" LD_STATIC_OPTION "}" \
@@ -64,6 +64,3 @@ index 6e91767efe8..22dbbf85850 100644
STATIC_LIBUBSAN_LIBS
#else
#define LIBUBSAN_SPEC "-lubsan" STATIC_LIBUBSAN_LIBS
--
2.35.1
@@ -1,4 +1,4 @@
From feea6f782e83a53487ad633608484dfa3483be1b Mon Sep 17 00:00:00 2001
From 714ed6d9649bf9ed42e34fef9c41169921e63921 Mon Sep 17 00:00:00 2001
From: Nils Andreas Svee <me@lochnair.net>
Date: Thu, 21 Dec 2017 03:14:33 +0100
Subject: [PATCH] mips64: disable multilib support
@@ -10,10 +10,10 @@ multilib is not supported by Alpine GCC
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 47aac9d3d61..4ad81059a86 100644
index 858bbba3a36..2d4f553e652 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -3425,11 +3425,11 @@ struct GTY(()) machine_function {
@@ -3447,11 +3447,11 @@ struct GTY(()) machine_function {
/* If we are *not* using multilibs and the default ABI is not ABI_32 we
need to change these from /lib and /usr/lib. */
#if MIPS_ABI_DEFAULT == ABI_N32
@@ -30,7 +30,7 @@ index 47aac9d3d61..4ad81059a86 100644
/* Load store bonding is not supported by micromips and fix_24k. The
diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64
index 130e1f04707..a64ac2bbb5b 100644
index 2fdd8e00407..406a3676289 100644
--- a/gcc/config/mips/t-linux64
+++ b/gcc/config/mips/t-linux64
@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
@@ -43,6 +43,3 @@ index 130e1f04707..a64ac2bbb5b 100644
+ ../lib \
+ ../lib32 \
+ ../lib
--
2.35.1
@@ -1,4 +1,4 @@
From cbd96a32dc2aaa61f6adcb3643e1da21f185f80e Mon Sep 17 00:00:00 2001
From 8fc8d6c26a2a45945182e211bc3ac2eae4d6a11b Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:12:55 +0000
Subject: [PATCH] aarch64: disable multilib support
@@ -9,7 +9,7 @@ multilib is unsupported on Alpine GCC
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux
index 241b0ef20b6..18e63b34d8b 100644
index d0cd546002a..b63a77f4969 100644
--- a/gcc/config/aarch64/t-aarch64-linux
+++ b/gcc/config/aarch64/t-aarch64-linux
@@ -22,7 +22,7 @@ LIB1ASMSRC = aarch64/lib1funcs.asm
@@ -21,6 +21,3 @@ index 241b0ef20b6..18e63b34d8b 100644
MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu)
MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32)
--
2.35.1
@@ -1,4 +1,4 @@
From e87e415e9a88dbce68ed7b9d8386c3c2d0c0d6b6 Mon Sep 17 00:00:00 2001
From 65ad898df141261a1ccd891a99133ad8f9847133 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:13:59 +0000
Subject: [PATCH] s390x: disable multilib support
@@ -20,6 +20,3 @@ index cc6ab367072..7f498ee1cdc 100644
-MULTILIB_OSDIRNAMES += $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:s390-linux-gnu)
+MULTILIB_OSDIRNAMES = m64=../lib
+MULTILIB_OSDIRNAMES+= m32=../lib32
--
2.35.1
@@ -1,4 +1,4 @@
From 5c24869c9bc1a552f8bb5c32a8538c6e065a4db8 Mon Sep 17 00:00:00 2001
From 3263d8634da6d7e1edb1bfd88e1b2627ce0aa1be Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:14:33 +0000
Subject: [PATCH] ppc64[le]: disable multilib support
@@ -12,7 +12,7 @@ multilib is not presently supported on Alpine GCC
4 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/gcc/config/rs6000/t-linux b/gcc/config/rs6000/t-linux
index aeb7440c492..ab14c455d8d 100644
index 4e371255533..128c75c7d39 100644
--- a/gcc/config/rs6000/t-linux
+++ b/gcc/config/rs6000/t-linux
@@ -2,7 +2,8 @@
@@ -36,7 +36,7 @@ index aeb7440c492..ab14c455d8d 100644
endif
diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64
index e11a118cb5f..df81dc04a32 100644
index 47e0efd5764..f89729af64f 100644
--- a/gcc/config/rs6000/t-linux64
+++ b/gcc/config/rs6000/t-linux64
@@ -28,8 +28,8 @@
@@ -48,7 +48,7 @@ index e11a118cb5f..df81dc04a32 100644
+MULTILIB_OSDIRNAMES := m64=../lib
+MULTILIB_OSDIRNAMES += m32=../lib32
rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c
rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.cc
$(COMPILE) $<
diff --git a/gcc/config/rs6000/t-linux64bele b/gcc/config/rs6000/t-linux64bele
index 97c1ee6fb4d..08d72639cb6 100644
@@ -76,6 +76,3 @@ index 2e63bdb9fc9..c6e1c5db65d 100644
+MULTILIB_OSDIRNAMES := m64=../lib
+MULTILIB_OSDIRNAMES += m32=../lib32
MULTILIB_MATCHES := ${MULTILIB_MATCHES_ENDIAN}
--
2.35.1
@@ -1,4 +1,4 @@
From 25927f8106583ee594e7bcdf92dd1387e0fd024c Mon Sep 17 00:00:00 2001
From bf63353ea679e0bbf2c2f17bb64c75ebd590c6e7 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 6 Jan 2022 03:14:54 +0000
Subject: [PATCH] x86_64: disable multilib support
@@ -9,7 +9,7 @@ multilib is not presently supported on Alpine GCC
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64
index d288b093522..2949033aa04 100644
index 5526ad0e6cc..78866afab36 100644
--- a/gcc/config/i386/t-linux64
+++ b/gcc/config/i386/t-linux64
@@ -33,6 +33,6 @@
@@ -21,6 +21,3 @@ index d288b093522..2949033aa04 100644
+MULTILIB_OSDIRNAMES = m64=../lib
+MULTILIB_OSDIRNAMES+= m32=../lib32
MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
--
2.35.1
@@ -1,4 +1,4 @@
From 18bcf23cae4069ffe9d9f64e851193d29dd4814f Mon Sep 17 00:00:00 2001
From 2eed19787020ce52cf07b76a5d167c420ec42b61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
Date: Mon, 3 Jan 2022 07:14:48 +0100
Subject: [PATCH] riscv: disable multilib support
@@ -43,7 +43,7 @@ library.
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
index ee29979dd34..fe8a82d6702 100644
index 3067ed6eac8..4c8c85e3285 100644
--- a/gcc/config/riscv/linux.h
+++ b/gcc/config/riscv/linux.h
@@ -71,9 +71,3 @@ along with GCC; see the file COPYING3. If not see
@@ -69,6 +69,3 @@ index 216d2776a18..1a8a863853e 100644
+MULTILIB_DIRNAMES := $(patsubst rv32%,lib32,$(patsubst rv64%,lib,$(MULTILIB_DIRNAMES)))
MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES))
+MULTILIB_MATCHES := march?rv64gc=march?rv64imafdc
--
2.35.1
@@ -1,4 +1,4 @@
From a46c8d6cb9428db29fbf8a80609ff449354ce111 Mon Sep 17 00:00:00 2001
From 51a35c0fa0e793c6a2c64ae1449c0cfd681d8f8a Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 07:05:41 +0000
Subject: [PATCH] always build libgcc_eh.a
@@ -10,7 +10,7 @@ highly inspired by:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
index 2c8be561eb5..c557750b1b3 100644
index 09b3ec8bc2e..c9ca58c64cc 100644
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -957,8 +957,9 @@ ifneq ($(LIBUNWIND),)
@@ -46,6 +46,3 @@ index 2c8be561eb5..c557750b1b3 100644
parts="$(INSTALL_PARTS)"; \
for file in $$parts; do \
rm -f $(DESTDIR)$(inst_libdir)/$$file; \
--
2.35.1
@@ -1,4 +1,4 @@
From d7064ab25a561bb99c3d0b35663154656013aed2 Mon Sep 17 00:00:00 2001
From 64a1c5f57e278869f41c43ee56cc5defb3dd55c5 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 07:06:30 +0000
Subject: [PATCH] ada: libgnarl compatibility for musl
@@ -9,10 +9,10 @@ Subject: [PATCH] ada: libgnarl compatibility for musl
2 files changed, 3 insertions(+), 61 deletions(-)
diff --git a/gcc/ada/libgnarl/s-osinte__linux.ads b/gcc/ada/libgnarl/s-osinte__linux.ads
index 2272f83d68d..1d78456544a 100644
index 7c9e7ca4518..caafc4aa68f 100644
--- a/gcc/ada/libgnarl/s-osinte__linux.ads
+++ b/gcc/ada/libgnarl/s-osinte__linux.ads
@@ -401,12 +401,6 @@ package System.OS_Interface is
@@ -403,12 +403,6 @@ package System.OS_Interface is
PTHREAD_RWLOCK_PREFER_WRITER_NP : constant := 1;
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : constant := 2;
@@ -25,7 +25,7 @@ index 2272f83d68d..1d78456544a 100644
function pthread_rwlock_init
(mutex : access pthread_rwlock_t;
attr : access pthread_rwlockattr_t) return int;
@@ -468,11 +462,6 @@ package System.OS_Interface is
@@ -470,11 +464,6 @@ package System.OS_Interface is
protocol : int) return int;
pragma Import (C, pthread_mutexattr_setprotocol);
@@ -38,7 +38,7 @@ index 2272f83d68d..1d78456544a 100644
sched_priority : int; -- scheduling priority
end record;
diff --git a/gcc/ada/libgnarl/s-taprop__linux.adb b/gcc/ada/libgnarl/s-taprop__linux.adb
index 757a6cdfdad..82df94f6a00 100644
index 4ff784f0ea7..b34a12802c6 100644
--- a/gcc/ada/libgnarl/s-taprop__linux.adb
+++ b/gcc/ada/libgnarl/s-taprop__linux.adb
@@ -198,9 +198,6 @@ package body System.Task_Primitives.Operations is
@@ -130,6 +130,3 @@ index 757a6cdfdad..82df94f6a00 100644
Result := pthread_rwlock_init (L.RW'Access, RWlock_Attr'Access);
pragma Assert (Result in 0 | ENOMEM);
--
2.35.1
@@ -1,4 +1,4 @@
From 5193de0a6c96fefe0c46fc9a6b8c27623ad85640 Mon Sep 17 00:00:00 2001
From 82addb1312f4f58a412a664228944009aa5cb569 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Fri, 21 Aug 2020 07:07:48 +0000
Subject: [PATCH] ada: musl support fixes
@@ -11,10 +11,10 @@ Subject: [PATCH] ada: musl support fixes
4 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
index b5b8b573ea4..6fce40d1e98 100644
index aaf853e3a2a..e2dd3587ed5 100644
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -1748,7 +1748,7 @@ ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),)
@@ -1633,7 +1633,7 @@ ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),)
s-intman.adb<libgnarl/s-intman__posix.adb \
s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
$(TRASYM_DWARF_UNIX_PAIRS) \
@@ -23,7 +23,7 @@ index b5b8b573ea4..6fce40d1e98 100644
a-exetim.adb<libgnarl/a-exetim__posix.adb \
a-exetim.ads<libgnarl/a-exetim__default.ads \
s-linux.ads<libgnarl/s-linux.ads \
@@ -2355,7 +2355,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
@@ -2258,7 +2258,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
s-tasinf.adb<libgnarl/s-tasinf__linux.adb \
s-taspri.ads<libgnarl/s-taspri__posix.ads \
$(TRASYM_DWARF_UNIX_PAIRS) \
@@ -32,7 +32,7 @@ index b5b8b573ea4..6fce40d1e98 100644
$(ATOMICS_TARGET_PAIRS) \
$(ATOMICS_BUILTINS_TARGET_PAIRS) \
system.ads<libgnat/system-linux-ppc.ads
@@ -2386,7 +2386,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
@@ -2289,7 +2289,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
endif
# ARM linux, GNU eabi
@@ -41,7 +41,7 @@ index b5b8b573ea4..6fce40d1e98 100644
LIBGNAT_TARGET_PAIRS = \
a-intnam.ads<libgnarl/a-intnam__linux.ads \
s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
@@ -2597,7 +2597,7 @@ ifeq ($(strip $(filter-out %ia64 linux%,$(target_cpu) $(target_os))),)
@@ -2504,7 +2504,7 @@ ifeq ($(strip $(filter-out %ia64 linux%,$(target_cpu) $(target_os))),)
s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
s-taspri.ads<libgnarl/s-taspri__posix-noaltstack.ads \
$(TRASYM_DWARF_UNIX_PAIRS) \
@@ -50,7 +50,7 @@ index b5b8b573ea4..6fce40d1e98 100644
$(ATOMICS_TARGET_PAIRS) \
$(ATOMICS_BUILTINS_TARGET_PAIRS) \
$(GNATRTL_128BIT_PAIRS) \
@@ -2700,7 +2700,7 @@ ifeq ($(strip $(filter-out %x86_64 linux%,$(target_cpu) $(target_os))),)
@@ -2608,7 +2608,7 @@ ifeq ($(strip $(filter-out %x86_64 linux%,$(target_cpu) $(target_os))),)
s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
s-taspri.ads<libgnarl/s-taspri__posix.ads \
$(TRASYM_DWARF_UNIX_PAIRS) \
@@ -60,7 +60,7 @@ index b5b8b573ea4..6fce40d1e98 100644
$(X86_64_TARGET_PAIRS) \
$(GNATRTL_128BIT_PAIRS) \
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 2e54e69643a..e7e6507e2e0 100644
index 591d033fbca..a485cbf15b9 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -91,6 +91,11 @@
@@ -75,7 +75,7 @@ index 2e54e69643a..e7e6507e2e0 100644
#ifdef __PikeOS__
#define __BSD_VISIBLE 1
@@ -3442,7 +3447,6 @@ __gnat_lwp_self (void)
@@ -3446,7 +3451,6 @@ __gnat_lwp_self (void)
#endif
#if defined (__linux__)
@@ -83,7 +83,7 @@ index 2e54e69643a..e7e6507e2e0 100644
/* glibc versions earlier than 2.7 do not define the routines to handle
dynamically allocated CPU sets. For these targets, we use the static
@@ -3452,7 +3456,7 @@ __gnat_lwp_self (void)
@@ -3456,7 +3460,7 @@ __gnat_lwp_self (void)
/* Dynamic cpu sets */
@@ -92,7 +92,7 @@ index 2e54e69643a..e7e6507e2e0 100644
__gnat_cpu_alloc (size_t count)
{
return CPU_ALLOC (count);
@@ -3465,33 +3469,33 @@ __gnat_cpu_alloc_size (size_t count)
@@ -3469,33 +3473,33 @@ __gnat_cpu_alloc_size (size_t count)
}
void
@@ -134,7 +134,7 @@ index 2e54e69643a..e7e6507e2e0 100644
}
size_t
@@ -3501,23 +3505,23 @@ __gnat_cpu_alloc_size (size_t count ATTRIBUTE_UNUSED)
@@ -3505,23 +3509,23 @@ __gnat_cpu_alloc_size (size_t count ATTRIBUTE_UNUSED)
}
void
@@ -164,10 +164,10 @@ index 2e54e69643a..e7e6507e2e0 100644
#endif /* !CPU_ALLOC */
#endif /* __linux__ */
diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h
index 85997b9ba68..fd10e5b5589 100644
index 2631be5ad3e..d442f4bd6cd 100644
--- a/gcc/ada/adaint.h
+++ b/gcc/ada/adaint.h
@@ -325,13 +325,11 @@ extern void *__gnat_lwp_self (void);
@@ -321,13 +321,11 @@ extern void *__gnat_lwp_self (void);
/* Routines for interface to required CPU set primitives */
@@ -186,7 +186,7 @@ index 85997b9ba68..fd10e5b5589 100644
#if defined (_WIN32)
diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c
index ec9db3a6a4c..6f92e50dd67 100644
index 32d30a49c7e..d960e32e2d0 100644
--- a/gcc/ada/terminals.c
+++ b/gcc/ada/terminals.c
@@ -1132,7 +1132,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED,
@@ -218,6 +218,3 @@ index ec9db3a6a4c..6f92e50dd67 100644
#elif defined (USE_OPENPTY)
status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL);
#elif defined (USE_CLONE_DEVICE)
--
2.35.1
@@ -1,43 +0,0 @@
From 8a42d93247c375f199f3079538d659f95b9ff2a0 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Sun, 30 Aug 2020 17:59:45 +0200
Subject: [PATCH] gcc-go: Fix handling of signal 34 on musl
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Taken from Adélie Linux.
---
libgo/mksigtab.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh
index 11e4ec436bd..fe866eacb27 100644
--- a/libgo/mksigtab.sh
+++ b/libgo/mksigtab.sh
@@ -82,7 +82,7 @@ checksig _SIGPWR '{_SigNotify, "SIGPWR: power failure restart"}'
checksig _SIGEMT '{_SigThrow, "SIGEMT: emulate instruction executed"}'
checksig _SIGINFO '{_SigNotify, "SIGINFO: status request from keyboard"}'
checksig _SIGTHR '{_SigNotify, "SIGTHR: reserved"}'
-checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
+#checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
checksig _SIGWAITING '{_SigNotify, "SIGWAITING: reserved signal no longer used by"}'
checksig _SIGLWP '{_SigNotify, "SIGLWP: reserved signal no longer used by"}'
checksig _SIGFREEZE '{_SigNotify, "SIGFREEZE: special signal used by CPR"}'
@@ -95,10 +95,12 @@ checksig _SIGLOST ' {_SigNotify, "SIGLOST: resource lost (Sun); server died (G
# Special handling of signals 32 and 33 on GNU/Linux systems,
# because they are special to glibc.
+# Signal 34 is additionally special to Linux systems with musl.
if test "${GOOS}" = "linux"; then
- SIGLIST=$SIGLIST"_32__33_"
+ SIGLIST=$SIGLIST"_32__33__34_"
echo ' 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */'
echo ' 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */'
+ echo ' 34: {_SigSetStack + _SigUnblock, "signal 34"}, /* see issue 30062 */'
fi
if test "${GOOS}" = "aix"; then
--
2.35.1
@@ -0,0 +1,101 @@
From ecc2a2e70e44fa76a75b12d0893bc1702b72a1b4 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <iant@golang.org>
Date: Mon, 19 Dec 2022 10:37:06 -0800
Subject: [PATCH] libgo: check for makecontext in -lucontext
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Patch from Sören Tempel.
Change-Id: I74b4052cc7aca19224afd6d9a2739c3fae46b722
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/458396
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
---
libgo/configure | 57 ++++++++++++++++++++++++++++++++++++++++++++++
libgo/configure.ac | 3 +++
2 files changed, 60 insertions(+)
diff --git a/libgo/configure b/libgo/configure
index 460fdad7..a607dbff 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -14818,6 +14818,63 @@ fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing makecontext" >&5
+$as_echo_n "checking for library containing makecontext... " >&6; }
+if ${ac_cv_search_makecontext+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char makecontext ();
+int
+main ()
+{
+return makecontext ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' ucontext; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_makecontext=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_makecontext+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_makecontext+:} false; then :
+
+else
+ ac_cv_search_makecontext=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_makecontext" >&5
+$as_echo "$ac_cv_search_makecontext" >&6; }
+ac_res=$ac_cv_search_makecontext
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
$as_echo_n "checking for library containing sched_yield... " >&6; }
if ${ac_cv_search_sched_yield+:} false; then :
diff --git a/libgo/configure.ac b/libgo/configure.ac
index 09554a37..a59aa091 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -570,6 +570,9 @@ PTHREAD_LIBS=
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS=-lpthread)
AC_SUBST(PTHREAD_LIBS)
+dnl Test if -lucontext is required for makecontext.
+AC_SEARCH_LIBS([makecontext], [ucontext])
+
dnl Test if -lrt is required for sched_yield or nanosleep or clock_gettime.
AC_SEARCH_LIBS([sched_yield], [rt])
AC_SEARCH_LIBS([nanosleep], [rt])
@@ -1,27 +0,0 @@
From c205f79c18add13247a06cfd843f5eb44c4c3cb4 Mon Sep 17 00:00:00 2001
From: Ariadne Conill <ariadne@dereferenced.org>
Date: Thu, 25 Nov 2021 01:47:03 +0000
Subject: [PATCH] There are more than one st_{a,m,c}tim fields in struct stat
on time64 machines.
Run the Go-isation on all of them.
---
libgo/mksysinfo.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 0c52ea5d71a..6fef104cc1c 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -510,7 +510,7 @@ fi
# For historical reasons Go uses the suffix "timespec" instead of "tim" for
# stat_t's time fields on NetBSD.
-st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
if test "${GOOS}" = "netbsd"; then
st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
fi
--
2.35.1
Loaded 100 of 2046 files, more files were not shown because too many files have changed in this diff. Show more