Commit graph

206 commits

Author SHA1 Message Date
Luca Weiss
9660d13ea2 Kernel updates (#1240)
* linux-postmarketos-mainline 4.16-rc2
* linux-postmarketos-stable 4.15.4
* linux-postmarketos-lts 4.14.20
2018-02-21 19:19:37 +00:00
Martijn Braam
64166249da postmarketos-ui-i3wm (#1225)
* Added a ui package for i3wm

* Added n900 specific i3wm config

* Fixed mixed tabs and spaces in i3status.

This is also the first commit made on an n900
running postmarketOS.

* Removed redundant X11

* Use lock.sh to lock the device

* Windows management improvements

* bump pkgver

* Fix device-nokia-n900 checksums

* Fixed path in the i3wm split package
2018-02-20 11:21:03 +01:00
Oliver Smith
a3310dbefc pmbootstrap build --src: override source for any package (#1210)
* New "pmbootstrap build --src=/local/source/path hello-world" syntax
* The local source path gets mounted inside the chroot
* From there, a copy of the source code gets created with rsync (so
  we can write into the source folder if necessary, for better
  compatibility with all kinds of APKBUILDs)
* After the aport gets copied into the chroot before building (as
  usually), we extend the APKBUILD with overrides to make it use
  mountpoint's source instead of downloading the package's source
  from the web as usually
* The package built with the local source gets _pYYYYMMDDHHMMSS
  appended to the pkgver
* linux-postmarketos-mainline: use $builddir, fix patch checksum
2018-02-19 22:04:01 +00:00
Martijn Braam
fa0dae0838 Wireguard for postmarketos-stable (#1231)
* Added modified wireguard APKBUILD from alpine
* Add required kernel options to postmarketos-stable
2018-02-19 16:51:00 +00:00
Pierre Rudloff
eb6ab4c641 gp-peak: display and touch screen (#1226)
Adds a /etc/local.d/ script in order to work around
udev being broken with this kernel.
2018-02-18 01:42:46 +00:00
Oliver Smith
b2495a917b linux-*: Don't depend on postmarketos-mkinitfs
Binary packages are rebuilding. If your kernel is not rebuilt yet, and
you don't want to build it yourself, just checkout the previous
pmbootstrap commit.

This commit also changes the arch from the postmarketOS kernels from
"all" to the ones where we actually have a kernel config.

Fixes #1229.
2018-02-17 18:26:31 +01:00
Oliver Smith
6aba5f73d4 Package kernel-scripts separately (#1234)
We have two methods of cross-compiling:
* native: everything runs with the host architecture, QEMU is not
  involved. This is the fastest, but requires the build system to be
  working with it. We use this for all linux-* packages currently.
* distcc: everything runs through QEMU emulating the target arch,
  *except* for the compiler. This is the most compatible approach
  working with all packages.

When compiling `linux-*` packages natively, kernel scripts needed
during the build process get generated. Some of these are C files that
get compiled as executables. In native mode, these get compied to the
native architecture, in distcc mode to the target architecture.

The problem is, that we need these scripts compiled for the target
architecture in the kernel's dev package in order to compile kernel
modules outside of the kernel's package (e.g. wireguard).

It is not possible to just rewrite this logic to generate target-arch
binaries when running in native mode, because these binaries require
musl-dev, linux-headers and some other packages to be installed for the
target architecture inside the native chroot.

We solve this by introducing a new `kernel-scripts` package. which
contains just the binary scripts. In case the dev package was
cross-compiled, it depends on `kernel-scripts` and symlinks these
binaries. The `kernel-scripts` package always gets compiled in distcc
mode since it does not have a `linux-` prefix.

Fixes #1230.
2018-02-16 22:00:37 +01:00
Oliver Smith
f05438b4e4 Various linux packages: Fix broken dev subpackage (#1228)
Fixes #1227.
This also updates the hash in linux-postmarketos-mainline, because the
hash changed upstream (they updated their git version server-side?).
2018-02-15 00:20:40 +01:00
Lucas Ramage
e5d88d4de7 mkbootimg: replace Python version with osm0sis' C version (#1193)
Closes #441. Adjust bootimg_analyze code:
* Install mkbootimg (which now provides unpackbootimg) instead of
  unpackbootimg. In theory, pmbootstrap should recognize this
  automatically, however right now it does not yet handle this case.
* The file names of the extracted files have changed.
2018-02-11 11:41:41 +00:00
Michael Hamann
99b398a7e5 devicepkg-dev: Generate calibration matrix for libinput (#1205)
* Automatically generate a calibration matrix for libinput
  This takes the calibration matrix for wayland and divides the pixel
  offsets by the device width/height.
* Bump pkgrels of devices using devicepkg-dev
  This causes new packages to be generated, using the new devicepkg-dev
  version.
2018-02-11 10:20:31 +00:00
alive4ever
f870333b99 Add triggerhappy: HID input device handler (#1211)
More information:
<https://wiki.postmarketos.org/wiki/Troubleshooting:HID_buttons>
2018-02-11 10:09:18 +00:00
Pavel Machek
ef60968c20 Update unicsy-demo to 0.4.6 (#1215) 2018-02-09 20:41:15 +00:00
Daniele Debernardi
4c91a72ff1 [fbdebug] Add panning functionality (#1207) 2018-02-06 21:21:25 +00:00
Daniele Debernardi
c818f9f054 fbdebug: Add initial framebuffer debug tool (#1196) 2018-02-03 19:09:59 +00:00
Oliver Smith
b165dd2c91 Testsuite: Run UIs in Qemu and check running processes and more (#982)
* Testsuite: Run UIs in Qemu and check running processes (and other changes)

* When `pmbootstrap qemu` gets killed, it now takes down the Qemu process with it
* `test/check_checksums.py` got a new optional `--build` parameter, which makes
  it build all changed packages instead of just checking the checksums
* We run this before running the testsuite now, so all changed packages get
  built before running tests (otherwise tests would hang without any output
  while a changed package is building)
* New testcase, that zaps all chroots, installs a specific UI (xfce4 and
  plasma-mobile currently, easy to extend), runs it via Qemu and checks the
  running processes via SSH.
* Version checking testcase: rewritten to include Alpine's testsuite file in
  our source tree, so we don't need to clone their git repo anymore. Now it
  is enabled for Travis.
* All this gives us a nice 10% code coverage boost
* Increased the `hello-world` pkgrel to verify that the Travis job is working.

* Various fixes
* Build device-packages for the device arch and don't raise an
  exception, but print a note if --ignore-depends is not specified
  and therefore the kernel gets installed, too.
* Don't use --force when building in Travis (because abuild doesn't
  check the checksums then. Bug report on the way.)
* Don't run the building process in the background, but wait for its
  completion
* Exit with 1 when showing usage in check_checksums.py
2018-02-02 00:16:29 +00:00
Oliver Smith
4c9b0de4f5 Fix invalid /etc/apk/repositories entry on device (#1189)
It used to have an entry for /mnt/pmbootstrap-packages, which only
makes sense while working on the chroot with pmbootstrap. After the
installation on the device, there's no repo in that path.
Furthermore, empty lines were added to the recovery installer script
for readability (thanks @ata2001!)
2018-02-01 22:44:20 +00:00
Oliver Smith
6d1af1b891 mkinitfs: Fail on missing depends / better usability in general (#1133)
* Fail if mkbootimg/uboot-tools are not installed, but creating a
  boot.img file / u-boot legacy image was requested via deviceinfo
  (fixes #312)
* Fail if /boot/dt.img is missing, but we have a qcdt device
* Fail if the dtb file specified in deviceinfo does not exist
* Fail if mkbootimg etc. exit with error code
* Don't try to add the ext4 module into the initramfs. We always
  compile it into the kernel. Instead, kconfig_check makes sure it
  is enabled now. (fixes #1037)
* Add a note that modprobe warnings can be ignored mostly
2018-01-31 19:39:09 +00:00
Oliver Smith
63247b469f libsamsung-ipc: update to 6.0.0003 and fix pkgver
Unfortunately pmbootstrap did not detect, that we had an invalid
pkgver in this package. See bug #1144.
2018-01-20 19:28:15 +00:00
Daniele Debernardi
8396a60cf3 abootimg: arch=all (#1131) 2018-01-18 00:58:50 +00:00
Oliver Smith
f5759c1e06 Gracefully handle packages breaking because of soname bumps (#1116)
Fixes #893. Changes:
* New action: "pmbootstrap pkgrel_bump"
* pmbootstrap detects missing soname depends when trying to install
  anyting, and suggests "pkgrel_bump --auto" to fix it
* Testcase test_soname_bump.py checks the pmOS binary package repo
  for soname breakage, so we see it when CI runs for new PRs
* libsamsung-ipc: bump pkgrel because of soname bump
2018-01-14 01:26:42 +00:00
rrooij
bf0a5f0a21 deviceinfo: add blobtools options (#1118)
Add a blobtools option to the deviceinfo file for creating specific
blobs for the Asus TF101 tablet. This will make it easier to flash
afterwards with ADB.
2018-01-13 20:38:29 +00:00
rrooij
6caddcb873 Add blobtools as package for tf101 (#1115)
This is for making a kernel image for the TF101 easier. See also:
ttps://github.com/postmarketOS/pmbootstrap/pull/1103#issuecomment-357035481

The TF101 does not support normal Android boot images and instead needs
a blob to be created.
2018-01-13 00:33:48 +00:00
Attila Szöllősi
ceefc5d8ec [recovery-installer] Copy contents of /etc/skel to home directory (#1114) 2018-01-12 21:53:15 +00:00
Alex Roth
6ae591471a postmarketos-artwork-wallpapers: Update to pull in JPG wallpapers (#1113) 2018-01-12 21:32:59 +00:00
Olgierd Nowakowski
bac4792f27 postmarketos-artwork: Spaces -> Tabs (#1110) 2018-01-10 19:00:55 +00:00
Filip Matijević
2cc6ae4a9d Add basic support for Nokia N9 (#1101)
Also added the watchdog-kick package:
Some devices (namely Nokia N9/950) use more than one watchdog, and
watchdog-kick package kicks all of /dev/watchdogs? every 10 seconds so
they don't reset the device
2018-01-09 16:42:55 +00:00
Olgierd Nowakowski
be5ae77c0a Artwork packages (corrected) (#1097)
* Packaged wallpapers and added a postmarketos-artwork metapackage

* Added artwork packages

* Spaces -> Tabs

* Merged postmarketos-artwork-wallpapers-extra to be a subpackage
Corrected maintainer email
2018-01-09 14:01:27 +01:00
Oliver Smith
73bd400ec0 qemu-amd64: make XFCE4, MATE work out of the box with SDL display (#1094)
* postmarketos-ui-xfce4: update to 0.1, depend on mesa-egl
* postmarketos-ui-mate: depend on mesa-egl
2018-01-08 18:29:11 +00:00
Olgierd Nowakowski
2cbff69bea Modified postmarketos-demo as discussed on IRC: (#1082)
Removed shutdown (as weston isn't running as root anymore)
Changed the firefox button to state that firefox needs to be installed
2018-01-05 03:06:16 +00:00
drebrez
a4dc750a3d Add initial packaging of MATE Desktop Environment (#1012)
Notably it has a loading delay (~30s) issue with marco (MATE window manager).
2018-01-03 18:43:13 +00:00
drebrez
5c2e83f051 [initramfs] Set framebuffer mode earlier in the script (before hooks) (#1070) 2018-01-03 00:38:32 +00:00
Bart Ribbers
75cd812fa3 postmarketos-ui-plasma-mobile: use kwin with framebuffer when missing /dev/dri (#1062)
Modified Plasma launch script to (crudely and unreliably)
detect if it has to run on the framebuffer or not
2018-01-02 22:53:21 +00:00
Luca Weiss
988aef6646 Update linux-postmarketos-mainline to 4.15-rc6 (#1067)
* Using full diff skipping v4.15-rc1
cgit doesn't generate proper patches for binary files (one was added in
v4.15-rc1 and removed in v4.15-rc5 because it also introduced a new
build-time dependency which is now solved). For 4.16 the "old" source
lines can be re-added but until then a full diff skipping v4.15-rc1
is needed.
* Add patch from linux-next to fix the build on some machines
  (sync-check.sh was not executable, see #950)
2018-01-01 23:53:01 +00:00
drebrez
1c71d748f5 [dtbTool] Fix version detection and find dtb in subfolders (#1057)
Fixes #1055.
2017-12-30 19:00:48 +00:00
clayton craft
d1c97617d6 linux-postmarketos-stable: Update to 4.14.9 (#1053) 2017-12-29 13:51:52 +00:00
Alex Roth
2a951d962d Add Teclast X80 Pro (EFI/x86_64 tablet) (#1050) 2017-12-29 02:02:29 +00:00
MoreRobustThanYou
6666f8a984 Replace dtbTool with the Skales dtbTool (#1048)
Should work the same, except it should also work in mainline,
because it uses libfdt (CM dtbtool often errors on mainline).
2017-12-28 20:44:50 +00:00
drebrez
0c63ff041c Feature debug-shell (#1028)
* Changed usb-shell behavior, it wait for some user action before continue booting
* Rename usb-shell to debug-shell and changed port to 23
* Add `20-debug-shell.sh` script to static code analysis
* Enable eth0 interface in initramfs (qemu)
* Add additional script to run a shell in order to be able to kill it from a telnet session
2017-12-23 19:22:28 +00:00
Oliver Smith
da9a4f99b7 Enable qt5-qtwebengine for aarch64 again
Compiling with the gold linker works \o/ - this fixes #1008.
2017-12-23 11:24:17 +01:00
Attila Szöllősi
7a92fc03d4 [recovery-installer] Log into one logfile instead of two (#1031) 2017-12-22 18:39:44 +00:00
Bart Ribbers
25d7b699c8 Add KDE debugging rules by default (#1032) 2017-12-22 18:37:36 +00:00
Attila Szöllősi
2f9ef89189 Rename deviceinfo variable flash_methods to flash_method (#1030)
* Rename deviceinfo variable flash_methods to flash_method
* Update pmb.config.deviceinfo_attributes / add sanity check
* Add test case that parses all deviceinfo files
2017-12-21 22:12:51 +00:00
Alex Roth
27b59a47bf Fix for qtwebengine not linking on armhf, re-add armhf arch for luna packages (#1025) 2017-12-19 23:28:26 +00:00
Oliver Smith
5584b04491 weston: bump pkgrel (soname bump of dependency libva) 2017-12-20 00:19:07 +01:00
Oliver Smith
204b7b4ef8 qt5-qtdeclarative (QML) compile for armv7 to enable JIT and make it work at all (#1022)
Also removed the Alpine maintainer (as we usually do so we don't
annoy him) and changed the pkgver to 9999 (this package is present
in upstream Alpine, we don't want it to get replaced when Alpine
updates their version).
2017-12-18 22:57:40 +00:00
Alex Roth
04d73a5824 Add packages and configuration changes to allow Luna to start in QEMU (#1016)
* Added a lot more Luna packages. It is now possible to start Luna, complete the first use app, and use the system. ARM support still broken.
* Cleanup & testing fixes. Starting in a fresh qemu environment works, but isn't quite deterministic. See wiki page for details
2017-12-17 18:25:59 +00:00
drebrez
db25689dfd apk-file: Command line front end for pkgs.alpinelinux.org (#1011) 2017-12-15 23:41:14 +00:00
drebrez
4782ffd01f Add devicepkg-dev which generate the touchscreen udev rule based on the deviceinfo (#995)
* Use devicepkg-dev by default in new device wizard
* Add link to reference wiki page
2017-12-14 21:17:18 +00:00
Oliver Smith
b031017414 qt5-qtwebengine: disable aarch64 and armhf (see #1008)
(Not increasing the pkgrel, because we really don't want to build
this when not necessary.)
2017-12-14 22:00:10 +01:00
Alex Roth
6792641fd1 Add qtwebengine & qtwebchannel from luna work (#999) 2017-12-12 23:37:04 +00:00