Commit Graph

2245 Commits

Author SHA1 Message Date
Oliver Smith 47e2ec1345 Merge pull request #93 from PabloCastellano/weston_patch_red_screen
[weston] Added compositor-fbdev-Added-parameter-pixman-type patch
2017-06-16 20:59:08 +00:00
Pablo Castellano 16c873d834 [weston] Added compositor-fbdev-Added-parameter-pixman-type patch
It fixes the red screen bug by running weston --pixman-type=2

https://github.com/postmarketOS/pmbootstrap/issues/54
2017-06-16 22:44:48 +02:00
Oliver Smith a1298cb114
Challenge/buildinfo: slightly improve output
Use "arch" instead of "carch", print "OK!" when a file has been verified
(which is much easier to recognize than "File has the same content").
2017-06-15 22:40:19 +02:00
Oliver Smith c250d65a9f
pmbootstrap challenge: Allow the signature filename to be different.
Also verify, that each apk contains exactly one signature file (a
file, that starts with .SIGN.RSA.).
2017-06-15 22:28:39 +02:00
Oliver Smith 906bda0e18
pmb.build.is_necessary(): Add optional apkindex_path parameter
This is necessary for pmbuilder (the componenet, that creates packages
in the upcoming binary package repository)
2017-06-15 19:53:48 +02:00
Oliver Smith 83eaa93c49
Update musl-* to 1.1.16-r12 2017-06-15 03:07:51 +02:00
Oliver Smith 55e276053a
Meaningful error in aportgen musl*, when aports repo is outdated 2017-06-15 03:05:04 +02:00
Oliver Smith a9e28c9b8b
Fix #89: Meaningful error message for missing arch in APKBUILD
The following message will be printed out now, in case you attempt
to build a package for an architecture, that is not specified in
the "arch=..." line inside the APKBUILD:

ERROR: Architecture 'aarch64' is not supported for this package.
Please add it to the 'arch=' line inside the APKBUILD and try again:
/path/to/APKBUILD
2017-06-15 02:44:43 +02:00
Oliver Smith 1adeee70b6
Fix #90: noarch: create symlinks for all supported architectures
* The supported architectures are inside the config now
* Symlinks get created for that list of supported architectures now.
* During initialization, the architecture from the selected device
  gets checked against the list of supported architectures. When
  it is not included, a meaningful exception gets raised.
* the aportgen and (cross-compiler) build tests make use of the
  new variable now (they had armhf and aarch64 hardcoded previously).
2017-06-15 02:26:32 +02:00
Oliver Smith 9ab3270b2a
Fix #87: weston: Change arch to "all", so it builds on aarch64.
Pull request for the same change in the upstream APKBUILD from Alpine:
https://github.com/alpinelinux/aports/pull/1689
2017-06-15 01:38:28 +02:00
Oliver Smith c951b2a5af
Remove firefox dependency from postmarketos-demos.
firefox-esr is not apackaged on Alpine for aarch64 right now.
As firefox is just a demo in the current state, it will be left to
the user to add it to his installation with the --add flag, so this
will not break the install step anymore.
2017-06-15 00:33:22 +02:00
Oliver Smith 0f7bfdc955
Rename test/repo.py to test/test_repo.py 2017-06-14 20:22:55 +02:00
Oliver Smith 90c3a67329
Fix syntax issues / unused import reported by static code analysis 2017-06-14 20:12:47 +02:00
Oliver Smith 1e45c64698
postmarketos-demos: Depend on firefox-esr instead of firefox
The firefox package is currently broken in armhf Alpine,
and it looks like fixing will take a while (depends on packaging
rust for armhf on Alpine):

https://bugs.alpinelinux.org/issues/7409
https://github.com/alpinelinux/aports/pull/1578#discussion_r119988654
2017-06-14 19:52:40 +02:00
Oliver Smith c0f90ee65a
pmb/helpers/repo.py: Diff ofthe package repo works properly now.
Previously, it would always report all files as new files, although
some of them may not have changed. I've added testcases for the
repo functions.
2017-06-14 19:48:23 +02:00
Oliver Smith 7543ae540b
Official support for aarch64 (#84)
* Fix hardcoded `armhf` in pmb/aportgen/binutils.py
* Generate aports: `binutils-aarch64`, `musl-aarch64`, `gcc-aarch64`
* Distccd: Remember the cross-compiler architecture (currently armhf
  or aarch64), that the current distccd is running as, and restart
  distccd with the correct architecture, in case a different arch
  is needed than what it is currently running as. (Depending on the
  cross-compiler arch, the PATH variable gets adjusted before
  starting distccd)
* Testcases: add aport generation for aarch64, add cross-compiling
  to aarch64
* pmb/parse/arch.py: Add aarch64 to the mapping
2017-06-14 19:10:21 +02:00
Oliver Smith 1274b8c26b
pmbootstrap challenge: subpackages, list of changed files
* Two new functions for getting a list of files and their timestamps
  in the repo, and diffing that information to get a list of changed
  files: pmb.helpers.repo.files() and pmb.helpers.repo.diff().
  (I've put it in the helpers folder, because it is not specific to
  one chroot, but to all chroots at once.)
* pmbootstrap challenge (new command introduced a few commits back to
  verify, that the contents of an APK file are deterministic) uses
  these functions to a) support subpackages and b) optionally
  output a list of changed files (this gets used in the pmbuilder
  script, which lives outside of this repository).

This commit is progress for #64 again.
2017-06-13 21:31:19 +02:00
Oliver Smith 6cbac208ba
Fix #83: Properly handle left over files when closing the cryptsetup device 2017-06-13 01:34:20 +02:00
Oliver Smith c076fcf9c2
Fix #76: Rebuild initramfs, when installing a initramfs hook
Also shellcheck all *.trigger files from now on in the static code analysis.
2017-06-13 00:55:49 +02:00
Oliver Smith 7c0c813610
pmbootstrap challenge: Fix location of the "package_split()" function 2017-06-11 15:14:26 +02:00
Oliver Smith 5f747bedcd
pmb.build.is_necessary(): Remove unused 'suffix' parameter 2017-06-11 14:45:00 +02:00
Oliver Smith 3a3dd8063f
Merge branch 'lazy-reproducible-builds'
We have "lazy reproducible builds" now. What I mean by that is, that
the resulting "apk" archive is not fully reproducible, but all binaries
inside it are. This is necessary to kick-off the binary repo, which is
in turn required to get the testsuite going on Travis. Read #64 for more
information.

Usage:
```
pmbootstrap build hello-world --buildinfo
pmbootstrap challenge /tmp/path/to/hello-world-1-r2.apk
```

The "--buildinfo" parameter generates a "buildinfo.json", which contains
the versions of all dependencies. It is not very optimizied, so this
is a performance bottleneck and takes 10 seconds (which is quite much
considering that the hello-world package builds in less than a second).
This can be improved in the future, and then the buildinfo parameter
may become the default.
2017-06-11 14:19:57 +02:00
Oliver Smith 52a5a884ce Merge pull request #81 from MartijnBraam/device-nokia-rx51
Added hook to enable backlight on boot for n900
2017-06-10 18:28:22 +00:00
Martijn Braam 7ea65a04d9 Bumped version for device-nokia-rx51 2017-06-10 19:49:49 +02:00
Martijn Braam 2bf3f46d7c Added hook to enable backlight on boot for n900 2017-06-10 18:43:33 +02:00
Oliver Smith 6252394abd Merge pull request #80 from postmarketOS/device-nokia-rx51
Martijn Braam's work on nokia rx51 (N900)
2017-06-10 10:49:27 +00:00
Oliver Smith f63c17cc2a Merge pull request #79 from MartijnBraam/device-nokia-rx51
Nokia branch cleanup
2017-06-10 10:13:01 +00:00
Martijn Braam aac5fc5fde Nokia branch cleanup 2017-06-10 11:43:24 +02:00
Oliver Smith 5eafa59753 Merge pull request #78 from MartijnBraam/device-nokia-rx51
Nokia n900 device support (rx51)
2017-06-10 00:42:34 +00:00
Martijn Braam 74ae8d071d Added uboot handeling to mkinitfs 2017-06-10 01:41:01 +02:00
Martijn Braam 383d6d3caf Renamed kerneloutput to vmlinuz- to avoid initfs build errors 2017-06-10 01:39:41 +02:00
Martijn Braam 565f8fc6f1 Added uboot script to n900 2017-06-10 01:38:46 +02:00
Oliver Smith 6999e6ea47
Fix #40: allow sdcard install, when the sdcard is mounted as /dev/sd* 2017-06-10 00:29:48 +02:00
Martijn Braam a5583d512d Added uboot flag to deviceinfo 2017-06-09 23:42:53 +02:00
Martijn Braam a3e1a3c336 Bootable kernel for Nokia n900 2017-06-09 23:11:29 +02:00
Martijn Braam ac3af4d70d Merge branch 'master' of github.com:postmarketOS/pmbootstrap into device-nokia-rx51 2017-06-09 20:27:19 +02:00
Oliver Smith afa42ce0a3
pmbootstrap initfs: Make wording in --help more consistent 2017-06-09 19:49:01 +02:00
Oliver Smith 9619682dea Merge pull request #75 from PabloCastellano/fix_checksum
postmarketos-mkinitfs-hook-usb-shell: Fix checksum
2017-06-09 17:38:28 +00:00
Pablo Castellano 0d18c9faaa postmarketos-mkinitfs-hook-usb-shell: Fix checksum 2017-06-09 19:32:26 +02:00
Oliver Smith 18339d0a14
Close #69: add 'pmbootstrap initfs' and improve initfs workflow
* allows to build/extract/list initramfs, add/del hook
* rebuild the initfs whenever running install or trying to flash/boot it
* flasher flash/boot: automatically set up a minimal rootfs with kernel and initfs,
  if it does not exist yet
2017-06-09 19:22:25 +02:00
Oliver Smith 32ad868cdc
apk.installed(): Retuns all packages and versions now
pmb.chroot.apk.installed() used to return only the explicitly installed
packages. This is not good enough for the initfs check functions (and
especially for the "lazy reproducible builds", from which branch this
commit was cherry picked).

This commit introduces more noise for the logfile - if this becomes
a problem, raise your voice in the issues tracker and we'll do something
about it.

(This commit also changes minor code styling in other files, I did
not run autopep8 last time, because flake8 didn't complain...)
2017-06-09 18:01:39 +02:00
Oliver Smith 4b903b7232
postmarketos-mkinitfs: Bump pkgrel, update hashes 2017-06-09 17:50:18 +02:00
Oliver Smith 69b558e45c Merge pull request #72 from MartijnBraam/feature/70-change-default-ip-and-subnet-for-telnetd
Changed telnetd ip in boot process to 172.16.42.1/24, see issue #70
Close #70.
2017-06-09 15:38:21 +00:00
Martijn Braam 9fc91c4edf Changed telnetd ip in boot process to 172.16.42.1/24, see issue #70 2017-06-09 12:29:56 +02:00
Oliver Smith d63d3f84ff
Update heimdall to 1.4.2 2017-06-08 20:37:08 +02:00
Martijn Braam 90cd0ad84d Initial n900 commit 2017-06-08 19:27:02 +02:00
Oliver Smith e55347315d
pmbootstrap index: Automatically set up abuild 2017-06-08 18:19:17 +02:00
Oliver Smith 50195a6af2
pmbootstrap log: Add a -n/--lines parameter (like tail has)
...also increase the default line count to 30, so it's easier to
spot an error if you didn't have the log open when it happened.

This parameter also works for 'pmbootstrap log_distccd', for consistency.
2017-06-08 18:15:38 +02:00
Oliver Smith 9515782f8d
Fix 67: New '--add' parameter for 'pmbootstrap install' to add custom packages.
Example usage:

./pmbootstrap install --add='vim,gcc'
2017-06-08 18:10:00 +02:00
Oliver Smith 5016c196ba
Fix two typos in the config 2017-06-08 18:02:00 +02:00