Commit graph

1577 commits

Author SHA1 Message Date
Oliver Smith
2c07f28419
cross/crossdirect: use qemu when linking (!318)
Cross linker (e.g. ld from binutils-armhf) does not support any method
of setting additional link paths, and this causes problems when building
various packages. Work around this problem by calling the qemu binary
instead of the cross binary from the native chroot, whenever we are
linking.

I have tested that this allows successfully building hello-world,
coreinfo, libhybris for armhf. So this fixes #227 and fixes #228.

Regarding performance, this is the same way as distcc does it. We would
get a performance gain if we were able to use the cross-linker. But so
far I could not figure out how to patch the binutils source to make it
work like we want to have it. Maybe I'll ask on some binutils mailing
list for advice. In the meantime, this workaround should make
crossdirect work for all use-cases, and it is still faster than the
previous distcc setup, because we can avoid the overhead of setting up
and running a ssh server locally to work around missing authentication
in distcc (see pmbootstrap!1649). Let's test this for some more time,
and then make a pmbootstrap release that rolls out crossdirect for
everyone.
2019-04-14 04:03:21 +02:00
Federico Amedeo Izzo
6b9ef9fda0 nokia-n900: The power button suspends the device in i3. (!313)
With this patch the power button (the one you use to turn it on)
suspends the device. This should allow to save more energy with respect
to just turning the screen off (slider button).

I tested myself on Nokia N900.

[ci:skip-build]: already built successfully in CI
2019-04-12 23:00:02 +00:00
Alexander Polynomdivision
eadb61205e
device-samsung-herolte: new device (Samsung Galaxy S7) (!314)
This is basically just the packages for the Galaxy S7 Edge (hero2lte).
I only needed to change a few Kernel config options, so that the
colors are displayed correctly. The options regarding
CONFIG_PANEL_S6E3HF4_WQHD and CONFIG_PANEL_S6E3HA3_DYNAMIC probably
solve this issue, but I modified the other options as well. I got the
differences by diffing:
arch/arm64/configs/exynos8890-{hero2lte,herolte}_defconfig

Booting, USB networking and the display work! I can't say anything about
flashing via heimdall as this tool scares me. Following what WilliamO7
wrote on the device page, I flashed it by sideloading the android
recovery zip.

[ci:skip-build]: already built successfully in CI
2019-04-13 00:25:10 +02:00
Robert Yang
77706b3b73
temp/qemu: Override upstream qemu package version (!312)
[ci:skip-build]: won't finish in time
2019-04-12 23:17:29 +02:00
Robert Yang
3f05e11467
temp/qemu: Link qemu static against jemalloc (!312)
Work around for issue #1715

Link qemu static binaries to jemalloc. This malloc implementation does not
appear to be susceptible to the deadlock after fork issue.
2019-04-12 23:16:37 +02:00
Robert Yang
1ec81fcdfe
temp/qemu: Package for x86 and x86_64 only (!312)
This is package is meant to work around the qemu static deadlock while
cross-compiling.

- pmbootstrap binfmt_misc chroots on arm hosts are untested
- upstream jemalloc package has armv7 disabled. It is uncertain what is
  wrong with jemalloc for armv7.

For these reasons, disable the arm packages.
2019-04-12 23:16:37 +02:00
Robert Yang
ea072f89f5
temp/qemu: Import qemu from upstream aports (!312) 2019-04-12 23:16:26 +02:00
Robert Yang
d4a468c24a
temp/jemalloc: Package for x86 and x86_64 only (!312) 2019-04-12 23:14:45 +02:00
Robert Yang
d6fdf52351
temp/jemalloc: Import jemalloc from upstream aports unmaintained repo (!312)
Taken from upstream aports @ 7af8be0e7aab4a5fe4315fb162850fad66aa7cb0
2019-04-12 23:14:38 +02:00
Robert Yang
24814b2ccb
xf86-video-opentegra: Compositing improvements (!311)
Includes pull request 51 from upstream.

[ci:skip-build]: already built successfully in CI
2019-04-12 01:03:28 +02:00
Robert Yang
e66967c06e
libdrm-grate: Caching improvements (!311)
Includes pull request 43 from upstream.
2019-04-12 01:02:57 +02:00
Robert Yang
e752240ee7
libvdpau-tegra: Fix drawing problems on tegra30 (!311) 2019-04-12 01:02:52 +02:00
Luca Weiss
a169c1335a
all: remove install scripts from source (!310) 2019-04-12 00:38:38 +02:00
Martijn Braam
9b88689b9d
new device: device-pine-dontbeevil (Don't be evil devkit) (!308)
UART and SSH work and HDMI works in u-boot (just like the pine-a64lts).
It should work now with display and xorg/weston works directly after
installing. Plasma mobile doesn't work directly because both kms and
fbdev are enabled and kms doesn't work yet.

linux-postmarketos-allwinner: update to 5.0.0-rc3 with patches for this
devkit, tested on this device and on pinea64lts (the only other device
using the allwinner kernel).

[ci:skip-build]: won't finish in time
2019-04-11 23:49:03 +02:00
Oliver Smith
9b6ea60690
cross/musl-*: update to 1.1.22-r0 2019-04-11 23:48:26 +02:00
Oliver Smith
467338098e
temp/libical: fix db.h: No such file or directory
Fix kcalcore build error. The same fix has been submitted to Alpine.

In file included from /home/pmos/build/src/kcalcore-18.12.3/src/icalformat.cpp:45:
/usr/include/libical/icalss.h:492:10: fatal error: db.h: No such file or directory
 #include <db.h>
          ^~~~~~

Related:
* https://gitlab.com/postmarketOS/pmaports/issues/229
* https://github.com/alpinelinux/aports/pull/6986
2019-04-08 21:55:12 +02:00
Bart Ribbers
40c126b925
kde/plasma*: upgrade to 5.15.4 (!298)
[ci:skip-build]: ollieparanoid made sure that this builds for x86_64,
                 armhf, armv7, aarch64
2019-04-08 21:12:15 +02:00
Oliver Smith
de7e9c1456
kde/kcalcore: rebuild after soname bump
missing depends: so:libical.so.2, so:libicalss.so.2, so:libicalvcal.so.2
2019-04-08 21:10:49 +02:00
km2
2e9beef9f2
samsung-i9003: support gcc8 (!307)
This patch forces the kernel to compile with gcc8 and includes by
default INSTALL_MOD_STRIP=1.
2019-04-08 20:45:42 +02:00
Tadeo Kondrak
1c4980bda5
htc-m7: new device (HTC One M7) (!306)
usb networking works

echo 100 > /sys/devices/platform/msm_fb.590593/leds/lcd-backlight/brightness
cat /sys/devices/virtual/graphics/fb0/modes > /sys/devices/virtual/graphics/fb0/mode

to get screen working

[ci:skip-build]: already built successfully in CI
2019-04-08 20:40:24 +02:00
Martin Piatka
e4aa322e33
htc-ace: switch to armv7 (!304)
Switches htc-ace to armv7. I was able to boot to xfce and everything
seemed to work fine.

[ci:skip-build]: already built successfully in CI
2019-04-07 16:06:53 +02:00
Martin Piatka
7e742e2ca3 firmware/firmware-aosp-broadcom-wlan: add armv7 arch (!303) 2019-04-06 21:12:51 +02:00
Oliver Smith
3928475fd6 cross/grub-efi-x86: update to 2.02-15 (!302) 2019-04-06 01:30:29 +02:00
Oliver Smith
dfebf60c9b CI: upstream compatibility: add grub-efi-x86 (!302)
Make sure we keep it in sync with Alpine's version.
2019-04-06 01:29:32 +02:00
Alexey Min
fb784b6236
hybris/*: enable building for armv7 (!297)
[ci:skip-build]: simple arch change, building will probably take too
                 long
2019-04-06 00:29:55 +02:00
Oliver Smith
6e3252e401 CI: disable crossdirect for now (!301)
Disable it, until more bugs are ironed out (see pmaports issues,
everything related to crossdirect that is still open). Will be enabled
again soon.
2019-04-06 00:17:55 +02:00
rahmanshaber
8a22cce65e
coreapps/*: update to 2.5.0 (!296)
[ci:skip-build]: already built successfully in CI
2019-04-04 23:42:38 +02:00
Nick Reitemeyer
39971739fa
surftab-wintron7.0: new device (TrekStor Surftab wintron 7.0) (!290)
This device is x86_64 and has a 32-bit UEFI, so I need to install
32-bit grub (AFAIK it's the only bootloader capable of loading a 64-bit
kernel from 32-bit).

The grub-efi-x86 package has been generated with pmbootstrap.
2019-04-04 19:58:24 +02:00
Oliver Smith
9bf7948303 pmaports.cfg: bump version (!299) 2019-04-03 21:26:12 +02:00
Oliver Smith
958f597a6c cross/crossdirect: use ccache, execve, -Werror (!299)
Instead of running compilers directly, let them go through the native
ccache binary. Note that it will still use the foreign arches cache dir
because the native cache dir would be at /native/home/pmos/.ccache.

Use execve instead of setenv and execv, because that didn't work with
LD_LIBRARY_PATH (ccache was complaining that it couldn't load zlib).

Enable -Werror, because we are maintaining this program and it helps
us catching bugs early.
2019-04-03 21:26:12 +02:00
Oliver Smith
9c90da7969 ccache-cross-symlinks: all arches, relative, clang (!299)
Create symlinks for all supported arches (armhf, armv7, aarch64, x86_64,
x86), not only armhf and aarch64. Skip creating symlinks for the arch
that the package gets built for, so we can include x86_64 in the list
without conflicting with the ccache package from Alpine.

Link to ../../../bin/ccache instead of /usr/bin/ccache, so it works
properly with crossdirect (where we mount the native chroot to /native
in the foreign chroot).

Add symlinks for clang and clang++.
2019-04-03 21:26:12 +02:00
Oliver Smith
f540943f0c
main, unity8: bump pkgrels after boost upgrade
$ pmbootstrap pkgrel_bump --auto
Increase 'libphonenumber' pkgrel (5 -> 6), missing depend(s): so:libboost_system-mt.so.1.67.0, so:libboost_thread-mt.so.1.67.0
Increase 'unity-system-compositor' pkgrel (0 -> 1), missing depend(s): so:libboost_system-mt.so.1.67.0
Increase 'trust-store' pkgrel (0 -> 1), missing depend(s): so:libboost_filesystem-mt.so.1.67.0, so:libboost_program_options-mt.so.1.67.0, so:libboost_system-mt.so.1.67.0
Increase 'process-cpp' pkgrel (0 -> 1), missing depend(s): so:libboost_iostreams-mt.so.1.67.0
Increase 'mir' pkgrel (0 -> 1), missing depend(s): so:libboost_filesystem-mt.so.1.67.0, so:libboost_iostreams-mt.so.1.67.0, so:libboost_program_options-mt.so.1.67.0, so:libboost_system-mt.so.1.67.0
Increase 'location-service' pkgrel (0 -> 1), missing depend(s): so:libboost_filesystem-mt.so.1.67.0, so:libboost_program_options-mt.so.1.67.0, so:libboost_system-mt.so.1.67.0
Increase 'ubuntu-download-manager' pkgrel (0 -> 1), missing depend(s): so:libboost_log-mt.so.1.67.0, so:libboost_program_options-mt.so.1.67.0, so:libboost_system-mt.so.1.67.0, so:libboost_thread-mt.so.1.67.0
Increase 'dbus-cpp' pkgrel (0 -> 1), missing depend(s): so:libboost_filesystem-mt.so.1.67.0, so:libboost_program_options-mt.so.1.67.0, so:libboost_system-mt.so.1.67.0

[ci:skip-build]: I doubt that this would finish in time
2019-04-03 21:25:34 +02:00
Luca Weiss
40d110fcc9 Change default NetworkManager DHCP client to dhcpcd (!278)
Remove the override in ouya-ouya (and in postmarketos-base) and add an
override for raspbery-pi3

Fixes #210
2019-03-29 14:53:47 +01:00
Federico Amedeo Izzo
97fd10aed4
oneplus-bacon: fix incorrect framebuffer refresh rate in Xorg (!294)
After this patch is applied, the phone boots in Xorg UIs like XFCE.

[ci:skip-build]: already built successfully in CI
2019-03-29 10:19:38 +01:00
Federico Amedeo Izzo
1ee8db41db samsung-klte: fix swapped red and blue (!291)
The problem behind swapped red and blue is inverted byte order in
framebuffer driver pixel format.
This patch sets the correct byte order in the framebuffer driver,
solving the swapped red and blue problem.

[ci:skip-build]: already built successfully in CI
2019-03-29 07:23:27 +00:00
Bart Ribbers
e3b1796552
kde/powerdevil: fix libexec install path (!293)
Change the patch to reflect expected location in
plasma-phone-components.

[ci:skip-build]: already built successfully in CI
2019-03-29 08:12:23 +01:00
Jakub Strzelecki
b19509a8fa
motorola-montana: new device (Motorola Moto G5s) (!286)
Initial starting point to get the device booting. The downstream kernel
repository can be improved, see discussion in the merge request.

[ci:skip-build]: already built successfully in CI
2019-03-29 08:04:13 +01:00
silver
568e035837 galaxy s relay support 2019-03-28 20:51:18 +00:00
Luca Weiss
874a309eed fairphone-fp2: fix swapped red and blue (!292)
Fixes the problem described in #211
2019-03-28 15:06:54 +00:00
Danct12
95198e12e9
xiaomi-santoni: use msm-3.18 upstream kernel (!289)
device-xiaomi-santoni: use mdss-fb-init-hack to refresh the display, and
swapfile to fix "out of memory" when loading proprietary blobs.

I have tested the kernel, USB Networking, Display, USB OTG, Wi-Fi (with
proprietary blobs) works fine, through I haven't figured out how to get
Bluetooth and among of other stuff to work. Audio works. For more
information on how to get Wi-Fi and Audio to work, check out the wiki
page for this device, I have updated it.

[ci:skip-build]: already built successfully in CI
2019-03-26 23:21:06 +01:00
Oliver Smith
c6aae11598
cross/musl-*: update to 1.1.21-r2 2019-03-26 23:19:56 +01:00
Mis012
481bd4493b
asus-me176c: update kernel repository name (!251)
[ci:skip-build]: building takes longer than one hour
2019-03-25 09:50:30 +01:00
Federico Amedeo Izzo
38dbafb98e
oneplus-one: fix swapped red and blue (!287)
The problem behind swapped red and blue is inverted byte order in
framebuffer driver pixel format.
This patch sets the correct byte order in the framebuffer driver.

The previous workaround patch is removed because it fixes improperly
the red-screen issue, causing the swapped red and blue problem
that this commit solves

[ci:skip-build]: already built successfully in CI
2019-03-25 09:43:16 +01:00
Oliver Smith
32a6db0ca6
temp/readline: remove (use upstream again)
Readline has been upgraded in upstream, the original reason why it was
forked is not necessary anymore. See:
https://gitlab.com/postmarketOS/pmaports/issues/217#note_153463712
2019-03-25 09:31:49 +01:00
Oliver Smith
b6ec855077 pmaports.cfg: bump version to 3 (!222)
This version has the "crossdirect" package, which will be required for
the new pmbootstrap code that uses the crossdirect compilation method by
default.
2019-03-23 01:06:42 +01:00
Zhuowei Zhang
68c1d5d2bd cross: add crossdirect package (!222)
A set of wrapper executables that launch native cross compilers inside
foreign chroots. Speeds up cross compilation a lot, compared to the
distcc-sshd method.
2019-03-23 01:05:40 +01:00
Oliver Smith
0d966c7a6f
cross/musl-*: update to 1.1.21-r1 2019-03-20 08:23:39 +01:00
knuxfanwin8
1672f9f5d3
samsung-lt01wifi: new device (Samsung Galaxy Tab 3 8.0) (!283)
[ci:skip-build]: already built successfully in CI
2019-03-20 08:14:38 +01:00
Bart Ribbers
def0dac79f
kde/plasma*: update to 5.15.3 (!277)
Built and tested on x86_64.

[ci:skip-build]: ollieparanoid made sure that this builds for all
                 arches
2019-03-18 09:37:12 +01:00
Martijn Braam
4c222eee7b main/postmarketos-ui-i3wm: Added xinput dependency (!282)
This adds the missing xinput dependency that's needed for lock.sh
2019-03-18 06:47:48 +00:00