Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerbuild$ make : failed due to missing qemu-user-static #73

Open
wants to merge 194 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
bf0bdb2
Build a new bsp-based xenial image with a help of boot tools
ayufan Feb 11, 2017
389bacf
Create xenial bsp image
ayufan Feb 11, 2017
42cc07b
Allow to specify branch
ayufan Feb 12, 2017
631ded0
Load hall module, install mate and nano
ayufan Apr 28, 2017
e3f0423
Use my-hacks-1.2
ayufan Apr 28, 2017
711e8b0
Update scripts
ayufan Apr 29, 2017
5caf9aa
Add CI scripts
ayufan Apr 29, 2017
58af12b
Merge branch 'master' of https://github.com/longsleep/build-pine64-image
ayufan Apr 29, 2017
56293e9
Move Dockerfile to build-environment
ayufan Apr 29, 2017
c9f57c6
Fix dockerfile
ayufan Apr 29, 2017
8122338
Update Jenkinsfile
ayufan Apr 29, 2017
7357eae
Run as root
ayufan Apr 29, 2017
6556071
Fix compilation
ayufan Apr 29, 2017
407fb41
Don't remove ccache
ayufan Apr 29, 2017
e8ab83d
Fix linux compilation
ayufan Apr 29, 2017
110bdff
Don't use VERSION as it collides with kernel
ayufan Apr 29, 2017
8bfbcad
Add cpio
ayufan Apr 29, 2017
6ece7ef
Add depmod
ayufan Apr 29, 2017
67b947a
Accept file path to every command
ayufan Apr 29, 2017
93640c1
Install missing tools
ayufan Apr 29, 2017
e6f3fb6
Fix naming and use parallel xz
ayufan Apr 29, 2017
dec71e3
Use GitHub Releases to distribute updates
ayufan Apr 29, 2017
2a871e2
Do not compile boot-tools
ayufan Apr 29, 2017
0bcb3ca
Add pxz for tar
ayufan Apr 29, 2017
5e63649
Do not mark kernel and uboot
ayufan Apr 29, 2017
3923d62
Fix installation of Ubuntu Mate
ayufan Apr 29, 2017
a52b6ad
Use BSP 3.0
ayufan Apr 29, 2017
854593e
Export LINUX_BRANCH
ayufan Apr 29, 2017
b59cfb3
Revert "Use BSP 3.0"
ayufan Apr 30, 2017
82426fa
Enable headphones on boot
ayufan Apr 30, 2017
94aa068
Build linux-pine64-package.deb that contains all scripts and fix pine…
ayufan Apr 30, 2017
15f7980
Merge remote-tracking branch 'upstream/master'
ayufan Apr 30, 2017
a8734ff
Remove unneeded add_platform_scripts
ayufan Apr 30, 2017
3e595c0
Due to how GitHub works, always unconditionally upgrade
ayufan Apr 30, 2017
008a7f7
Fix uboot updating
ayufan Apr 30, 2017
16a9cd8
Add bluetooth support for linux-package
ayufan May 1, 2017
ea9dde5
Install chromium-browser
ayufan May 1, 2017
49fda51
Revert "Install chromium-browser"
ayufan May 1, 2017
18a1f69
Add pine64_install_to_emmc.sh
ayufan May 1, 2017
d394b36
Add motd message with upgrade possibilities
ayufan May 1, 2017
e00164e
Use declarative pipeline
ayufan May 1, 2017
bdc3f51
Revert "Use declarative pipeline"
ayufan May 1, 2017
d53dc09
Add Pinebook touchpad deceleration
ayufan May 1, 2017
a6ba43e
Update used boot0 and u-boot
ayufan May 1, 2017
446c6f4
Add simple experimental android upgrader script
ayufan May 2, 2017
91f60ca
Fix Android upgrader script
ayufan May 2, 2017
120285a
Restore alsa settings after resume
ayufan May 2, 2017
1e4c56b
Merge remote-tracking branch 'upstream/master'
ayufan May 2, 2017
111ca6c
Move scripts and xorg configuration to package
ayufan May 2, 2017
3865629
Remove eth0 mackeeper as it is no longer needed
ayufan May 2, 2017
a1c6db6
Fix description
ayufan May 2, 2017
e405a18
Fix simpleimage producing empty BOOT
ayufan May 2, 2017
6feb5e1
Compile different variants of xenial: i3, mate and minimal
ayufan May 2, 2017
c8246ec
Fix various bugs in scripts: mostly comparisons
ayufan May 2, 2017
f782e81
Rename if2name to p2p0
ayufan May 3, 2017
68c6332
Disable Wi-Fi powermanagement entirely
May 3, 2017
36af981
Remove [[ as this is not supported by /bin/sh
ayufan May 3, 2017
47aa896
Add script to remove boot0 and make the device unbootable.
ayufan May 3, 2017
45cce2e
Rename pine64_remove_boot.sh to pine64_remove_boot0.sh
ayufan May 3, 2017
440fdbd
Add eGON check to remove_boot0.sh script
ayufan May 3, 2017
b1b6e79
Add RPi-Monitor installation script
May 3, 2017
8c149b3
Merge pull request #2 from ThomasKaiser/master
ayufan May 3, 2017
e03970d
Merge pull request #1 from ThomasKaiser/patch-1
ayufan May 3, 2017
5918a0f
Revert change to install_i3_desktop.sh to cleanly merge longsleep cha…
ayufan May 3, 2017
5642cdd
Merge branch 'master' of github.com:ayufan-pine64/build-pine64-image
ayufan May 3, 2017
05df2e3
Merge remote-tracking branch 'upstream/master'
ayufan May 3, 2017
2a0c1ac
Remove corekeeper per https://github.com/longsleep/build-pine64-image…
ayufan May 3, 2017
119001e
Add preliminary stretch multistrapping
May 4, 2017
9b21a87
remove and not comment cpu-corekeeper enabling
May 4, 2017
ebea8b6
Build i3 Stretch variant only for now
May 4, 2017
48fa364
Add 'debootstrap multistrap' to build-environment
May 4, 2017
5dde29a
Removed 'apt install' invocations on build host
May 4, 2017
17961b6
Preinstall apps and add pinebook background image files
whongx May 5, 2017
83bf8d6
Preinstall apps and add pinebook background image files
whongx May 5, 2017
691c37c
Preinstall apps and add pinebook background image files
whongx May 5, 2017
f684eb3
Auto resize rootfs partition after boot up
whongx May 5, 2017
9e4d176
Merge pull request #3 from ThomasKaiser/master
ayufan May 5, 2017
9ebe586
Merge remote-tracking branch 'upstream/master'
ayufan May 5, 2017
246ffd5
Adopt install_rpi_monitor.sh for new battery drain readout
May 6, 2017
909e736
Disable stretch as it doesn't compile
ayufan May 6, 2017
0407799
Fix script failure
ayufan May 6, 2017
ae42ff6
Store download tarball in temp directory to allow concurrent access
ayufan May 6, 2017
1deeb17
Merge pull request #7 from ThomasKaiser/master
ayufan May 7, 2017
d4b8470
Merge remote-tracking branch 'upstream/master'
ayufan May 7, 2017
9f00a9e
(WARNING) Removed unused bits from longsleep/build-pine64-image
ayufan May 8, 2017
96ad369
Merge remote-tracking branch 'longsleep/master'
ayufan May 8, 2017
c952ac0
Add first boot service that does resize partition for the first time
ayufan May 8, 2017
59e1578
Install a bunch of additional applications on first boot
ayufan May 8, 2017
4149ccf
All distribution do use pine64/pine64 as credentials
ayufan May 8, 2017
3119bbf
Make stretch just yet-another debian distribution
ayufan May 8, 2017
bb76843
Merge remote-tracking branch 'pine64dev/master'
ayufan May 8, 2017
266f120
Fix package compilation
ayufan May 8, 2017
3d47d3f
Remove smplayer-skins which is not existing
ayufan May 8, 2017
5585908
Add missing "CURRENTFILE" variable content
whongx May 9, 2017
cc4e05f
Remove CURRENTFILE variable
whongx May 9, 2017
5b7f403
Remove CURRENTFILE variable
whongx May 9, 2017
054d3c4
Merge pull request #8 from pine64dev/master
ayufan May 9, 2017
5f641ea
Install chromium-browser
ayufan May 9, 2017
c190aa9
Set login background
ayufan May 12, 2017
39bbc90
Compile also pine64 xenial
ayufan May 13, 2017
09f2124
Fix support for pine64
ayufan May 13, 2017
f3a8ddf
Merge remote-tracking branch 'longsleep/master'
ayufan May 21, 2017
1733734
Update configuration-files
ayufan May 21, 2017
c951eff
Add default chromium configuration
ayufan May 21, 2017
a4afb3b
Revert back manual fstab configuration
ayufan May 25, 2017
67f72d3
Use customizations instead of default for chromium settings
ayufan May 28, 2017
7c6b406
Build minimal sopine image
ayufan May 30, 2017
f1628fa
Store asound.state as debian config file
ayufan May 31, 2017
6e698d7
Support SoPine for more boards
ayufan May 31, 2017
ae32d39
Additional of conditional release based on parameter
pfeerick Jun 1, 2017
5b4e7e9
Typos and parameterised make
pfeerick Jun 1, 2017
6a665f4
Minor wording changes
pfeerick Jun 1, 2017
22edc33
allow-hotplug instead of auto for eth0
pfeerick Jun 18, 2017
659f104
Change the default wallpaper
pfeerick Jun 20, 2017
b8f10b2
Merge pull request #13 from pfeerick/patch-3
ayufan Jun 20, 2017
a569600
Changed wallpaper link to be symbolic
pfeerick Jun 21, 2017
0306f88
Choice make tarket parameter and formatting changes
pfeerick Jun 21, 2017
28b516a
Merge pull request #15 from pfeerick/pinebook-wallpaper
ayufan Jun 21, 2017
0bdddac
Merge pull request #14 from pfeerick/jenkins-conditional-release
ayufan Jun 21, 2017
6461ab0
Rename PRERELEASE to GITHUB_PRERELEASE
ayufan Jun 21, 2017
154d204
Use prebuilt rootfs for all images
ayufan Jun 21, 2017
a7dff2e
Update Makefile
ayufan Jun 23, 2017
a419d04
Changed boot partition size from 50MiB to 100MiB
pfeerick Jul 8, 2017
2a04751
Alignment
pfeerick Jul 8, 2017
e699b18
Merge pull request #23 from pfeerick/100MB_boot
ayufan Jul 8, 2017
4c0e194
Use 150MB for simpleimage
ayufan Jul 9, 2017
4c7543e
Changes to enable internal mic by default
pfeerick Jul 11, 2017
a400a26
Merge pull request #25 from pfeerick/pinebook-mic
ayufan Jul 11, 2017
ff8d415
Changed file line endings to UNIX
pfeerick Jul 11, 2017
180ba73
Allow to enable and disable sunxidrm
ayufan Jul 12, 2017
2eb6201
Add additional repositories and libmali
ayufan Jul 12, 2017
8c41c09
Use with-drm variant
ayufan Jul 12, 2017
71db10c
Fix enable/disable scripts for sunxidrm
ayufan Jul 12, 2017
458c1cc
Load sunxidrm when requested
ayufan Jul 13, 2017
d0ec59e
Add glmark2-es2 and mesa-utils-extra
ayufan Jul 13, 2017
023976f
Verify if packages are installed
ayufan Jul 13, 2017
8b30d7e
Audio group permission missing
pfeerick Jul 14, 2017
160abc0
Add htop, figlet. Removed some whitepace.
pfeerick Jul 14, 2017
4efa240
Merge pull request #28 from pfeerick/add-htop
ayufan Jul 14, 2017
e44cfd3
Merge pull request #26 from pfeerick/asound-state-unix
ayufan Jul 16, 2017
293140c
Merge pull request #27 from pfeerick/audio-group-fix
ayufan Jul 16, 2017
4eed481
Updated depreciated stage declarations
pfeerick Jul 19, 2017
85cd1fb
Reconfigure ld.so.conf too when enabling sunxidrm
ayufan Jul 21, 2017
d905b70
Enable egl in chromium when mali is used
ayufan Jul 21, 2017
1bc36e1
Added diagnostics script and armbianmonitor symlink
pfeerick Jul 23, 2017
df2920b
Build additional variants: zesty/stretch/jessie
ayufan Jul 23, 2017
6407496
Merge pull request #29 from pfeerick-pine64/jenkins-deprecated-stage-…
ayufan Jul 23, 2017
5d4b8fa
Merge pull request #30 from pfeerick-pine64/pine64-diagnostics
ayufan Jul 23, 2017
d611565
Add target to compress image
ayufan Jul 23, 2017
b44b55c
Fix script path
ayufan Jul 23, 2017
32bf5f2
Pass model first, variant next
ayufan Jul 23, 2017
ff3f708
Install missing dirmngr
ayufan Jul 23, 2017
ad06aee
Always use xenial, for now
ayufan Jul 23, 2017
2c582ce
Fix longsleep signing key
ayufan Jul 23, 2017
4c5f7d1
Remove stretch-i3-pinebook
ayufan Jul 23, 2017
1f4c065
Disable openmediavault build
ayufan Jul 24, 2017
aadd1a0
Add hostname MOTD banner (#33)
pfeerick Jul 28, 2017
3b70461
Changes based on tkaiser feedback on OMV (#31)
pfeerick Jul 28, 2017
a5b0fec
Updates to diagnostic script (#37)
pfeerick Aug 4, 2017
33679a7
Explicitly build simple-image
ayufan Aug 17, 2017
935dad7
Allow to install elementary desktop
ayufan Aug 17, 2017
e3920a0
Fix Makefile problem
ayufan Aug 17, 2017
cecca62
Use proper simple-image for different models
ayufan Aug 23, 2017
da36682
Remove bogus log redirect (#48)
Sep 13, 2017
683a1c9
Use mmc3 branch, always
ayufan Sep 14, 2017
6f60953
fix misspelled for pine64-model to pine64_model (#43)
sujunmin Oct 5, 2017
11b4754
Revert back to `with-drm` regular, not mmc3 fixed
ayufan Oct 7, 2017
9da0350
Fix Dockerfile
ayufan Oct 8, 2017
9e20622
Merge branch 'master' of https://github.com/ayufan-pine64/build-pine6…
ayufan Oct 8, 2017
f23459b
Use with-drm
ayufan Oct 9, 2017
9fa65d2
Install `rsync`
ayufan Oct 14, 2017
27eb1c1
Fix rtl8723ds_bt
ayufan Oct 9, 2018
a7f8b60
Update Makefile
ayufan Oct 9, 2018
4c9afb5
Build pinebook-1080p variant
ayufan Oct 24, 2018
ded3d18
Leave `xenial` and `stretch` only
ayufan Oct 24, 2018
89a2d08
Update `install_desktop.sh` to support bionic
ayufan Oct 24, 2018
f402dee
Build bionic and stretch only
ayufan Oct 24, 2018
c09902a
Support lxde variant
ayufan Oct 24, 2018
d01e7ba
Support bionic
ayufan Oct 24, 2018
b7e4caf
Replace to pinebook1080p
ayufan Oct 24, 2018
11512a1
Compile only LXDE for Pinebook
ayufan Oct 24, 2018
0b6c476
Do not inject `pine64_model` into `uEnv.txt`
ayufan Oct 24, 2018
12b4cc0
Build xenial mate
ayufan Oct 25, 2018
8d5d017
Fix `resolv.conf`
ayufan Oct 27, 2018
e722c24
Enable pine64 sunxidrm by default
ayufan Oct 27, 2018
975da50
Add pine64_install_uboot.sh script
ayufan Oct 27, 2018
a00e536
Use my armsoc feature to separate cursor plane
ayufan Oct 27, 2018
25b0678
Fix sunxidrm build
ayufan Oct 27, 2018
b4bb3f9
Install recommends as they are needed for Mate
ayufan Oct 30, 2018
ea9a20f
Build bionic mate
ayufan Oct 30, 2018
1854826
Only use `vdpau-sunxi` when using old disp driver
ayufan Oct 30, 2018
7060f33
Add simple script to fix brisk-menu
ayufan Oct 30, 2018
60e0900
Remove xenial
ayufan Oct 30, 2018
164656c
Eatmydata
ayufan Oct 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@
/snappy/gadget/uboot.env
/snappy/gadget/uboot.conf
/snappy/gadget/boot-assets
/boot-tools/
/*.deb
/*.xz
/*.img
tmp/
97 changes: 97 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**
properties([
parameters([
string(defaultValue: '1.0', description: 'Current version number', name: 'VERSION'),
text(defaultValue: '', description: 'A list of changes', name: 'CHANGES'),
choice(choices: 'all\nkernel-tarball\nlinux-package\nxenial-minimal-pinebook\nxenial-mate-pinebook\nstretch-i3-pinebook\nxenial-pinebook\nlinux-pinebook\nxenial-minimal-pine64\nlinux-pine64\nxenial-minimal-sopine\nlinux-sopine', description: 'What makefile build type to target', name: 'MAKE_TARGET')
booleanParam(defaultValue: true, description: 'Whether to upload to Github for release or not', name: 'GITHUB_UPLOAD'),
booleanParam(defaultValue: false, description: 'If build should be marked as pre-release', name: 'GITHUB_PRERELEASE'),
string(defaultValue: 'ayufan-pine64', description: 'GitHub username or organization', name: 'GITHUB_USER'),
string(defaultValue: 'build-pine64-image', description: 'GitHub repository', name: 'GITHUB_REPO'),
])
])
*/

node('docker && linux-build') {
timestamps {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
stage('Environment') {
checkout scm

def environment = docker.build('build-environment:build-pine64-image', 'build-environment')

environment.inside("--privileged -u 0:0") {
withEnv([
"USE_CCACHE=true",
"RELEASE_NAME=$VERSION",
"RELEASE=$BUILD_NUMBER"
]) {
stage('Prepare') {
sh '''#!/bin/bash
set +xe
export CCACHE_DIR=$WORKSPACE/ccache
ccache -M 0 -F 0
git clean -ffdx -e ccache
'''
}

stage('Build') {
sh '''#!/bin/bash
set +xe
export CCACHE_DIR=$WORKSPACE/ccache
make -j4 $MAKE_TARGET
'''
}
}

withEnv([
"VERSION=$VERSION",
"CHANGES=$CHANGES",
"GITHUB_PRERELEASE=$GITHUB_PRERELEASE",
"GITHUB_USER=$GITHUB_USER",
"GITHUB_REPO=$GITHUB_REPO"
]) {
stage('Release') {
if (params.GITHUB_UPLOAD) {
sh '''#!/bin/bash
set -xe
shopt -s nullglob

github-release release \
--tag "${VERSION}" \
--name "$VERSION: $BUILD_TAG" \
--description "${CHANGES}\n\n${BUILD_URL}" \
--draft

for file in *.xz *.deb; do
github-release upload \
--tag "${VERSION}" \
--name "$(basename "$file")" \
--file "$file" &
done

wait

if [[ "$GITHUB_PRERELEASE" == "true" ]]; then
github-release edit \
--tag "${VERSION}" \
--name "$VERSION: $BUILD_TAG" \
--description "${CHANGES}\n\n${BUILD_URL}" \
--pre-release
else
github-release edit \
--tag "${VERSION}" \
--name "$VERSION: $BUILD_TAG" \
--description "${CHANGES}\n\n${BUILD_URL}"
fi
'''
} else {
echo 'Flagged as an no upload release job'
}
}
}
}
}
}
}
}
188 changes: 188 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
export RELEASE_NAME ?= 0.1~dev
export RELEASE ?= 1
export LINUX_BRANCH ?= my-hacks-1.2-with-drm
export BOOT_TOOLS_BRANCH ?= with-drm
LINUX_LOCALVERSION ?= -ayufan-$(RELEASE)

all: linux-pinebook linux-pine64 linux-sopine

linux/.git:
git clone --depth=1 --branch=$(LINUX_BRANCH) --single-branch \
https://github.com/ayufan-pine64/linux-pine64.git linux

linux/.config: linux/.git
make -C linux ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" clean CONFIG_ARCH_SUN50IW1P1=y
make -C linux ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" sun50iw1p1smp_linux_defconfig
touch linux/.config

linux/arch/arm64/boot/Image: linux/.config
make -C linux ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" -j$(shell nproc) LOCALVERSION=$(LINUX_LOCALVERSION) Image
make -C linux ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" -j$(shell nproc) LOCALVERSION=$(LINUX_LOCALVERSION) modules
make -C linux LOCALVERSION=$(LINUX_LOCALVERSION) M=modules/gpu/mali400/kernel_mode/driver/src/devicedrv/mali \
ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" \
CONFIG_MALI400=m CONFIG_MALI450=y CONFIG_MALI400_PROFILING=y \
CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y CONFIG_MALI_DT=y \
EXTRA_DEFINES="-DCONFIG_MALI400=1 -DCONFIG_MALI450=1 -DCONFIG_MALI400_PROFILING=1 -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH -DCONFIG_MALI_DT"

busybox/.git:
git clone --depth 1 --branch 1_24_stable --single-branch git://git.busybox.net/busybox busybox

busybox: busybox/.git
cp -u kernel/pine64_config_busybox busybox/.config
make -C busybox ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" -j4 oldconfig

busybox/busybox: busybox
make -C busybox ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" -j4

kernel/initrd.gz: busybox/busybox
cd kernel/ && ./make_initrd.sh

boot-tools/.git:
git clone --single-branch --depth=1 --branch=$(BOOT_TOOLS_BRANCH) https://github.com/ayufan-pine64/boot-tools

boot-tools: boot-tools/.git

linux-pine64-$(RELEASE_NAME).tar: linux/arch/arm64/boot/Image boot-tools kernel/initrd.gz
cd kernel && \
bash ./make_kernel_tarball.sh $(shell readlink -f "$@")

package/rtk_bt/.git:
git clone --single-branch --depth=1 https://github.com/ayufan-pine64/rtl8723ds_bt package/rtk_bt

package/rtk_bt/rtk_hciattach/rtk_hciattach: package/rtk_bt/.git
make -C package/rtk_bt/rtk_hciattach CC="ccache aarch64-linux-gnu-gcc"

linux-pine64-package-$(RELEASE_NAME).deb: package package/rtk_bt/rtk_hciattach/rtk_hciattach
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 "Pine A64 Linux support package" \
-m "Kamil Trzciński <[email protected]>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a arm64 \
--config-files /var/lib/alsa/asound.state \
package/root/=/ \
package/rtk_bt/rtk_hciattach/rtk_hciattach=/usr/local/sbin/rtk_hciattach

%.tar.xz: %.tar
pxz -f -3 $<

%.img.xz: %.img
pxz -f -3 $<

simple-image-pine64-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
cd simpleimage && \
export boot0=../boot-tools/boot/pine64/boot0-pine64-plus.bin && \
export uboot=../boot-tools/boot/pine64/u-boot-pine64-plus.bin && \
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-plus

simple-image-sopine-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
cd simpleimage && \
export boot0=../boot-tools/boot/pine64/boot0-pine64-sopine.bin && \
export uboot=../boot-tools/boot/pine64/u-boot-pine64-sopine.bin && \
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-sopine

simple-image-pinebook-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
cd simpleimage && \
export boot0=../boot-tools/boot/pine64/boot0-pine64-pinebook.bin && \
export uboot=../boot-tools/boot/pine64/u-boot-pine64-pinebook.bin && \
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-pinebook

simple-image-pinebook1080p-$(RELEASE_NAME).img: linux-pine64-$(RELEASE_NAME).tar.xz boot-tools
cd simpleimage && \
export boot0=../boot-tools/boot/pine64/boot0-pine64-pinebook1080p.bin && \
export uboot=../boot-tools/boot/pine64/u-boot-pine64-pinebook1080p.bin && \
bash ./make_simpleimage.sh $(shell readlink -f "$@") 150 $(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz) pine64-pinebook1080p

BUILD_SYSTEMS := bionic stretch
BUILD_VARIANTS := minimal mate i3 lxde openmediavault
BUILD_ARCHS := arm64
BUILD_MODELS := pine64 pinebook pinebook1080p sopine

%-$(RELEASE_NAME)-$(RELEASE).img.xz: %-$(RELEASE_NAME)-$(RELEASE).img
pxz -f -3 $<

%-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pine64-$(RELEASE_NAME).img.xz \
simple-image-pinebook-$(RELEASE_NAME).img.xz \
simple-image-pinebook1080p-$(RELEASE_NAME).img.xz \
simple-image-sopine-$(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-$(filter $(BUILD_MODELS), $(subst -, ,$@))-$(RELEASE_NAME).img.xz)" \
"$(shell readlink -f linux-pine64-$(RELEASE_NAME).tar.xz)" \
"$(shell readlink -f linux-pine64-package-$(RELEASE_NAME).deb)" \
"$(filter $(BUILD_SYSTEMS), $(subst -, ,$@))" \
"$(filter $(BUILD_MODELS), $(subst -, ,$@))" \
"$(filter $(BUILD_VARIANTS), $(subst -, ,$@))"

.PHONY: kernel-tarball
kernel-tarball: linux-pine64-$(RELEASE_NAME).tar.xz

.PHONY: linux-package
linux-package: linux-pine64-package-$(RELEASE_NAME).deb

simple-image-pinebook: simple-image-pinebook-$(RELEASE_NAME).img.xz \
simple-image-pinebook1080p-$(RELEASE_NAME).img.xz

simple-image-pine64: simple-image-pine64-$(RELEASE_NAME).img.xz

simple-image-sopine: simple-image-sopine-$(RELEASE_NAME).img.xz

.PHONY: simple-image
simple-image: simple-image-pinebook simple-image-pine64 simple-image-sopine

.PHONY: bionic-mate-pinebook
bionic-mate-pinebook: bionic-mate-pinebook-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz \
bionic-mate-pinebook1080p-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: bionic-lxde-pinebook
bionic-lxde-pinebook: bionic-lxde-pinebook-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz \
bionic-lxde-pinebook1080p-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: stretch-minimal-pine64
stretch-minimal-pine64: stretch-minimal-pine64-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: stretch-minimal-sopine
stretch-minimal-sopine: stretch-minimal-sopine-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: stretch-minimal-pinebook
stretch-minimal-pinebook: stretch-minimal-pinebook-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz \
stretch-minimal-pinebook1080p-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: stretch-openmediavault-pine64
stretch-openmediavault-pine64: stretch-openmediavault-pine64-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: bionic-pinebook
bionic-pinebook: bionic-mate-pinebook bionic-lxde-pinebook

.PHONY: stretch-pinebook
stretch-pinebook: stretch-minimal-pinebook

.PHONY: linux-pinebook
linux-pinebook: simple-image-pinebook bionic-pinebook stretch-pinebook

.PHONY: bionic-minimal-pine64
bionic-minimal-pine64: bionic-minimal-pine64-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: linux-pine64
linux-pine64: simple-image-pine64 bionic-minimal-pine64 stretch-minimal-pine64

.PHONY: bionic-minimal-sopine
bionic-minimal-sopine: bionic-minimal-sopine-bspkernel-$(RELEASE_NAME)-$(RELEASE).img.xz

.PHONY: linux-sopine
linux-sopine: simple-image-sopine bionic-minimal-sopine stretch-minimal-sopine

.PHONY: shell
shell:
@docker build -t build-environment:build-pine64-image build-environment/
@docker run --rm -it -v $(CURDIR):$(CURDIR) -w $(CURDIR) --privileged build-environment:build-pine64-image
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Various scripts i created while looking into Pine64 U-Boot and booting.
Various scripts i created (ayufan) based on @longsleep changes to help with automated Linux building.

## License

Expand Down
38 changes: 0 additions & 38 deletions blobs/README.md

This file was deleted.

Binary file removed blobs/boot0.bin
Binary file not shown.
Binary file removed blobs/boot0pinebook.bin
Binary file not shown.
Binary file removed blobs/boot0so.bin
Binary file not shown.
Loading