forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build linux-pine64-package.deb that contains all scripts and fix pine…
…book support
- Loading branch information
Showing
33 changed files
with
137 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ | |
/snappy/gadget/uboot.conf | ||
/snappy/gadget/boot-assets | ||
/boot-tools/ | ||
/*.deb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,22 @@ linux-pine64-$(RELEASE_NAME).tar: linux/arch/arm64/boot/Image boot-tools kernel/ | |
cd kernel && \ | ||
bash ./make_kernel_tarball.sh $(shell readlink -f "$@") | ||
|
||
linux-pine64-package-$(RELEASE_NAME).deb: package | ||
fpm -s dir -t deb -n linux-pine64-package -v $(RELEASE_NAME) \ | ||
-p $@ \ | ||
--deb-priority optional --category admin \ | ||
--force \ | ||
--deb-compression bzip2 \ | ||
--after-install package/scripts/postinst.deb \ | ||
--before-remove package/scripts/prerm.deb \ | ||
--url https://gitlab.com/ayufan-pine64/linux-build \ | ||
--description "GitLab Runner" \ | ||
-m "Kamil Trzciński <[email protected]>" \ | ||
--license "MIT" \ | ||
--vendor "Kamil Trzciński" \ | ||
-a arm64 \ | ||
package/root/=/ | ||
|
||
%.tar.xz: %.tar | ||
pxz -f -3 $< | ||
|
||
|
@@ -58,17 +74,21 @@ simple-image-pinebook-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz b | |
export uboot=../boot-tools/build/u-boot-sun50iw1p1-secure-with-pinebook-dtb.bin && \ | ||
bash ./make_simpleimage.sh $(shell readlink -f "$@") 100 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) | ||
|
||
xenial-pinebook-bspkernel-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pinebook-$(RELEASE_NAME).img.xz linux-pine64-$(RELEASE_NAME).tar.xz boot-tools | ||
xenial-pinebook-bspkernel-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pinebook-$(RELEASE_NAME).img.xz linux-pine64-$(RELEASE_NAME).tar.xz linux-pine64-package-$(RELEASE_NAME).deb boot-tools | ||
sudo bash ./build-pine64-image.sh \ | ||
$(shell readlink -f $@) \ | ||
$(shell readlink -f simple-image-pinebook-$(RELEASE_NAME).img.xz) \ | ||
$(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) \ | ||
$(shell readlink -f linux-pine64-package-$(RELEASE_NAME).deb) \ | ||
xenial \ | ||
pinebook | ||
|
||
.PHONY: kernel-tarball | ||
kernel-tarball: linux-pine64-$(RELEASE_NAME).tar.xz | ||
|
||
.PHONY: linux-package | ||
linux-package: linux-pine64-package-$(RELEASE_NAME).deb | ||
|
||
.PHONY: simple-image-pinebook-$(RELEASE_NAME).img | ||
simple-image-pinebook: simple-image-pinebook-$(RELEASE_NAME).img | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blacklist 8723bs_vq0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
disp | ||
hdmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
8723bs | ||
8723cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Disable wlan1 by default (8723bs has two intefaces) | ||
iface wlan1 inet manual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=CPU corekeeper | ||
|
||
[Service] | ||
ExecStart=/usr/local/sbin/pine64_corekeeper.sh | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Fix eth0 mac address to uEnv.txt | ||
After=systemd-modules-load.service local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/local/sbin/pine64_eth0-mackeeper.sh | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
10 changes: 10 additions & 0 deletions
10
package/root/etc/systemd/system/pinebook-headphones.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Enable headpohones | ||
After=systemd-modules-load.service local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/local/sbin/pinebook_enable_headphones.sh | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=Generate SSH keys if not there | ||
Before=ssh.service | ||
ConditionPathExists=|!/etc/ssh/ssh_host_key | ||
ConditionPathExists=|!/etc/ssh/ssh_host_key.pub | ||
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key | ||
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub | ||
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key | ||
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub | ||
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key | ||
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub | ||
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key | ||
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub | ||
|
||
[Service] | ||
ExecStart=/usr/bin/ssh-keygen -A | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=ssh.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
KERNEL=="disp", MODE="0770", GROUP="video" | ||
KERNEL=="cedar_dev", MODE="0770", GROUP="video" | ||
KERNEL=="ion", MODE="0770", GROUP="video" | ||
KERNEL=="mali", MODE="0770", GROUP="video" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
case "$1" in | ||
abort-upgrade|abort-remove|abort-deconfigure) | ||
;; | ||
|
||
configure) | ||
if [ ! -e /var/lib/alsa/asound.state ] && [ -e /etc/pine64_model ]; then | ||
cp /var/lib/alsa/asound.state.$(cat /etc/pine64_model) /var/lib/alsa/asound.state | ||
fi | ||
;; | ||
|
||
*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/sh |
Oops, something went wrong.