Commit Graph

706 Commits

Author SHA1 Message Date
Oliver Smith 6a7a01b613
Update musl-* to upstream (1.1.18-r2) 2017-11-22 23:07:50 +01:00
Attila Szöllősi 405b702e32 Workaround for mdss-fb (#927) 2017-11-21 23:17:59 +00:00
drebrez 0cca286aba Move flash_methods variable to __init__.py (#919) 2017-11-20 16:40:16 +00:00
drebrez 0a231f0e0f gitignore: Ignore Visual Studio Code folder (#918) 2017-11-20 16:25:41 +00:00
Rares 7030508a28 Add support for Sony Xperia Z1 (sony-honami) (#916) 2017-11-19 19:31:08 +00:00
Oliver Smith a7b881e4cc
Close #871: Enable binary repository (#887)
* add my own build key
* enable the repo in the config
* update the README file
* Adjust testcase, that validates the keys and enable it in testcases_fast.sh
* Only save/load keys to/from the config file, which we ask for during
  'pmbootstrap init', so the binary repo gets used even if a config file
  already exists (this also removes a workaround, that deletes the work
  folder path from the config dictionary before writing it)
* Download missing APKINDEX.tar.gz files with Python code, before
  attempting to build packages (so we know which ones aleady exist in
  the binary packages repository)
* Consider APKINDEX files older than 4 hours as outdated and download
  them again (also in Python code)
* Provide 'pmbootstrap update' to force-update the APKINDEX files
* Travis: more logging output on failure
* Only allow keys from config_keys to be used by "pmbootstrap config"
2017-11-19 15:04:08 +00:00
drebrez 94e2387af5 Add `pmbootstrap bootimg_analyze` / prompt during new device wizard (#905) 2017-11-19 14:35:23 +00:00
Pablo Castellano 4c1836e9a1 postmarketos-mkinitfs: Handle "deviceinfo_bootimg_qcdt" boolean properly (#914) 2017-11-19 14:25:10 +00:00
clayton craft 2d393209cc [grouper] Add osk-sdl config for device (#670) 2017-11-18 17:42:37 +00:00
Pablo Castellano 99d7b58ee5 init: Add manufacturer to pkgdesc when creating new device (#913) 2017-11-18 11:02:19 +00:00
Attila Szöllősi d9e7a3d7de Run recovery installer in chroot (#901)
The recovery installer now has as few dependencies on the
Android recovery system as possible.
2017-11-16 22:20:57 +00:00
Oliver Smith 4c7793e766
Workaround for Qemu aarch64 abuild-tar bug (#907)
See also: <https://github.com/postmarketOS/pmbootstrap/issues/546>
2017-11-15 22:28:10 +00:00
Jochen Sprickerhof c50ecd7c5a Unset restrictive umask before creating files (#908)
If a user has a restrictive umask (for example 0077) set, it will be
inherited to sudo and thus files created with sudo where not readable by
the normal user. In that case, when setting up a new chroot, the
etc/apk/repositories file would have umask 600 and a os.path.exists()
(in update_repository_list) would return false. Setting the umask to 022
(octal) first, results in world readable files and directories, so the
user running `./pmbootstrap.py install` can read them.
2017-11-14 21:02:56 +00:00
Oliver Smith e2df68a588
linux-samsung-i9003: fix compilation with PARANOID_NETWORK disabled (#884) 2017-11-14 19:33:34 +00:00
Oliver Smith 90f89ef18c
Fix #722: don't use a HTTPS package mirror by default (#896)
* Fix #722: don't use a HTTPS package mirror by default
* Use load balancing mirror http://dl-cdn.alpinelinux.org/alpine/
2017-11-14 19:02:27 +00:00
clayton craft 3f7b44a991 [linux-postmarketos-stable] Update to 4.14 (#903)
Note, I have removed the rx51 DRM patch that worked around the boot display issue (#208), this issue should be resolved in this kernel.
2017-11-14 16:13:35 +00:00
clayton craft 92fce696f9 [osk-sdl] Update to 0.51 (#862) 2017-11-12 11:17:30 +00:00
clayton craft 0eb856a2f6 Close #897: Add max size option for fastboot (#899)
This adds a new deviceinfo 'flash_fastboot_max_size' used for
preventing fastboot from flashing a system partition that is too
large. Some devices do not support flashing over a certain size
(e.g. 500MB).
2017-11-11 22:00:22 +00:00
MoreRobustThanYou 6a017c63a2 Fix #895: Disable RDP in weston (#898) 2017-11-11 18:17:33 +00:00
MoreRobustThanYou bcf3d8d86c Update vendor ID in amazon-thor deviceinfo (#886) 2017-11-09 22:25:38 +00:00
Oliver Smith b3351ab305
Fix linux-postmarketos-mainline depends (#880)
* Use libressl-dev instead of openssl-dev
* Remove busybox-static-armhf
2017-11-08 20:24:02 +00:00
clayton craft e70d09b61b [linux-postmarketos-stable] Update to 4.13.12 (#883) 2017-11-08 19:40:04 +00:00
Oliver Smith c96da8cd37
Fix: package gets rebuilt, even if it exists, when using default arch (#881)
When not specifying an architecture for `pmbootstrap build`, and the `APKBUILD`
says that it can't be built for the native arch, it gets built for the right
foreign arch. `pmbootstrap` did not properly detect if packages were already
built in that case, and tried to build them again.

(I've noticed that while building packages for the binary repo #871.)

Use any `linux-` package, that is not available for `x86_64` on a `x86_64` PC
and build it twice. It should get properly detected now:

```shell
pmbootstrap build linux-amazon-thor
pmbootstrap build linux-amazon-thor # should not get built again
```
2017-11-07 23:23:55 +00:00
Oliver Smith 93a122cd24
README.md: remove obsolete telnet unlocking text (#882) 2017-11-07 22:27:51 +00:00
drebrez 1ca3079f7a [samsung-maguro] Add firmware-samsung-maguro package (#849) 2017-11-06 22:03:35 +00:00
MoreRobustThanYou c6b5b8d83a Update the amazon-thor kernel (#879)
Camera got fixed in the hdx-common kernel
2017-11-06 21:44:02 +00:00
Alex Roth 56562bdacb Add new device: samsung-i747m (Galaxy S3 USA/Canada version) (#877)
* Add samsung-i747m (Galaxy S3 USA/Canada)
* Add support for WiFi on i747m
2017-11-05 20:10:19 +00:00
Oliver Smith 1bf892f5eb
Close #453: Support mesa-dri-virtio in Qemu (#861)
The mesa driver, which ends up in the installation image, needs to be known
before the installation is done (in other words: when running the qemu action,
it is to late as the image has already been generated). That's why one can
choose the Qemu mesa driver in `pmbootstrap init` now:

```
Device [qemu-amd64]:
Which mesa driver do you prefer for your Qemu device? Only select something other
than the default if you are having graphical problems (such as glitches).
Mesa driver (dri-swrast/dri-virtio) [dri-virtio]:
```

It is still possible to select `dri-swrast`, because `dri-virtio` may not work
in all cases, and that way we could easily debug it or experiment with other
mesa drivers (e.g. the "vmware" one, which is supported by mesa and Qemu).

Other changes:
* `pmbootstrap qemu` accepts a `--display` variable now, which passes the value
  directly to `qemu`'s `display` option. It defaults to `sdl,gl=on` (@PureTryOut
  reported that to work best with plasma mobile on his PC). `--display` and
  `--spice` (which is still working) are mutually exclusive.
* Removed obsolete telnet port pass-through: We only use the debug telnet port
  since osk-sdl has been merged.
* Add show-cursor to the Qemu command line, so it shows a cursor in X11
* Refactored the spice code (`command_spice` only returns the spice command,
  because it has all necessary information already) and the spice port can be
  specified on the commandline now (previously it was hardcoded in one place and
  then always looked up from there).
* Start comments with capital letters.
* Keep the log on the screen a bit shorter (e.g. Qemu command is written to the
  "pmbootstrap log" anyway, so there's no need to display it again).
* linux-postmarketos-stable: Adjust kernel configs
x86_64, armhf: enable as modules:
CONFIG_DRM_VIRTIO_GPU, CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_BALLOON
aarch64: all 3 options were already enabled as built-in (no change)
* Set '-vga virtio' for mesa-dri-virtio
2017-11-05 13:48:49 +00:00
drebrez 6089b037dd Add PMOS_FORCE_PARTITION_RESIZE kernel boot parameter (#874) 2017-11-04 22:54:42 +00:00
Pablo Castellano fa0769a499 motorola-titan: Package wifi firmware (#771) 2017-11-04 22:30:03 +00:00
drebrez e388afd14c [huawei-y530] Cleanup kernel APK, fix compilation issue, remove unnecessary DTBs (#872) 2017-11-04 22:05:57 +00:00
drebrez af8ba21f94 Update musl-* to upstream (1.1.18-r0) (#873) 2017-11-04 19:50:48 +01:00
Oliver Smith 50faf5fe22
Close #865: Check line endings in APKBUILDs (#868) 2017-11-04 16:12:33 +00:00
Alex Roth 7ff0568d6f Add new device oneplus-onyx (Oneplus X) (#856) 2017-11-04 02:45:37 +00:00
clayton craft cacb05e7e6 Fix #818: Clean up updated repo list after zapping chroots (#867) 2017-11-04 02:43:06 +00:00
clayton craft 2987294ea6 Remove existing apk cache symlink before creating link (#866)
This removes any existing symlinks (which always seem to be broken when
this is encountered) to <workdir>/chroot_native/etc/apk/cache before
creating the symlink.
2017-11-04 02:19:23 +00:00
Oliver Smith 7eb3b6dda3
libsamsung-ipc, linux-postmarketos-mainline: Fix invalid pkgrels (#853)
* libsamsung-ipc, linux-postmarketos-mainline: Fix invalid pkgrels
* Update linux-postmarketos-mainline to 4.14_rc7
2017-11-04 02:13:25 +00:00
Oliver Smith 6962803fbb
Fix #831: Disallow work dir being inside the pmbootstrap dir (#852) 2017-11-04 02:04:55 +00:00
clayton craft 01d1643477 [rx51] Fix uboot script to use -stable kernel name (#864) 2017-11-03 23:56:56 +00:00
drebrez 6fb5b28e2f Add "flash_fastboot_vendor_id" deviceinfo variable for fastboot flash method (#857) 2017-11-03 23:20:55 +00:00
clayton craft e735be93e4 [linux-postmarketos-stable] Update to 4.13.11 (#858) 2017-11-03 18:50:46 +01:00
Luca Weiss 31ab3c6efd Add firmware-fairphone-fp2 (#773)
Currently includes firmware and configuration files for the prima/pronto
wlan driver
2017-11-02 17:35:32 +00:00
drebrez ba3e2f6d26 Add argument to zap (-o) older versions of packages from all chroots (#841)
- also moved the mismatch clean (-m) before zapping the chroots
- added confirmation questions to -o and -m
2017-11-02 17:33:14 +00:00
clayton craft 2b7dbb9433 [linux-postmarketos-stable] Update to 4.13.10 (#847) 2017-11-01 15:56:57 +00:00
Oliver Smith 6627599cf0
pmbootstrap init: Wizard for new port device- and linux-packages (#821)
* pmbootstrap init: Generate new port device- and linux-package
* adds `pmbootstrap aportgen device-*` and
  `pmbootstrap aportgen linux-*`
* ask for confirmation when selecting a non-existing device
* generate the packages directly from init
* refactor aportgen code
* fixed some easy things in the linux- APKBUILD (more to come in
  follow-up PRs!)

Testing:
* Test all questions to the user from pmb.config.init and pmb.aportgen.device
  (except for the timezone question, because we would need to monkeypatch the
  os.path.exists() function, which messes up pytest, so we'd need to refactor
  the timezone function to be more testsuite friendly first)
* Run the device wizard in a testcase a few times and check the output, that
  pmbootstrap.aportgen.device and pmbootstrap.aportgen.linux create by parsing
  the resulting APKBUILDs and deviceinfo and checking its contents.
* Build the generated device package once in the same testcase

Thanks a lot to @drebrez for all the help with this one:
<https://github.com/postmarketOS/pmbootstrap/pull/821>

See also the updated porting guide:
<https://wiki.postmarketos.org/wiki/Porting_to_a_new_device>
2017-10-30 19:56:38 +00:00
MoreRobustThanYou 883bda01db New device: amazon-thor (KFHDX 3rd Gen) (#823) 2017-10-29 21:33:52 +00:00
JBB 0a71ca1ddd Fix: #842: qemu-user-static-repack download URL didn't work (#844) 2017-10-29 14:00:02 +00:00
drebrez 11e44fe44a Some kernel APKBUILD cleanup (#833)
* Cleanup linux-htc-bravo APKBUILD
* Cleanup linux-samsung-tuna APKBUILD and rename the package to
  linux-samsung-maguro
* Cleanup linux-sony-aries APKBUILD
2017-10-28 19:43:28 +00:00
ajakk e770ccbd56 Update aports for busybox-static-* (to 1.27.2-r3) (#837) 2017-10-28 19:28:28 +00:00
Oliver Smith 94f8cece24
Update musl-* to upstream (1.1.17-r2) (Fix #838) 2017-10-28 21:15:56 +02:00