Commit Graph

158 Commits

Author SHA1 Message Date
Igor Pečovnik
c7b853602d U-boot compilation for Tinkerboard breaks due missing some headers files (#2747) 2021-03-29 22:03:39 +02:00
Igor Pečovnik
8827838e8b Distribution support status was not read when creating only BSP package (#2693) 2021-03-06 20:29:07 +01:00
Igor Pečovnik
3b1c94a268 Most recent Git client returns protocol in get-url origin (#2684)
This leads to constant redownloading of sources in case your access ssh, while url is not written that way.
2021-03-03 20:31:53 +01:00
柚木鉉
98c1cbc889 Add bfsu mirror as another mirror of tuna (#2682)
* add bfsu for china mirror
2021-03-03 17:45:25 +01:00
Igor Pečovnik
2e594375a9 Improve cache and toolchain download (#2665)
* Improve cache and toolchain download

* Cleanup
2021-02-26 18:27:21 +01:00
Igor Pečovnik
3a74abe43d Merge desktop branch (#2662)
Co-authored-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Richard Neese <r.neese@gmail.com>
Co-authored-by: iav <iav@iav.lv>
Co-authored-by: lanefu <lanefu@users.noreply.github.com>
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
Co-authored-by: Oleg <balbes-150@yandex.ru>
Co-authored-by: Lane Jennison <lane@lane-fu.com>
Co-authored-by: JMCC <jmcc1@gmx.com>
2021-02-24 18:19:09 +01:00
Igor Pecovnik
4713ab23b9 Internal - Add support for Hirsute build host
We need this at least for building more recent (test) targets
2021-02-22 11:56:48 +00:00
Igor Pecovnik
fdd305e52f Several backend fixes and improvemetens
Affected:

- repository old packages purging
- multiple image making
2020-12-23 18:19:30 +01:00
Igor Pečovnik
ecab2ce68b Check if file exists on remote server before running aria2 downloader (#2435) 2020-12-10 16:14:50 +01:00
Igor Pečovnik
e107f37475 Compatibility issue for Debian Buster (#2403)
If kernel is build with GCC9.2 we can't compile modules with DKMS. Reverting compiler to 8.3 until better solution emerges. No known side effects. Tested - working.
https://armbian.atlassian.net/browse/AR-557
2020-12-02 17:45:50 +01:00
lanefu
76aad7802c Use armbian mirrors for downloads (#2400)
* switch to ARBIAN_MIRROR var for downloads
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-12-01 14:43:38 +01:00
Werner
dd1a9b1daa Typo
Fixes #2380
2020-11-25 15:13:15 +01:00
Igor Pečovnik
17d6b8e3a5 Add support for Groovy. (#2355)
Remaining not supported - it just doesn't bump out error.
2020-11-16 19:10:57 +01:00
Werner
faedda3102 Mark Bionic as host EOS (#2316)
* Mark Bionic as host EOS

* Update README.md

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-11-12 07:50:35 +01:00
Igor Pecovnik
9b12d2907f Improve multicore build process by make use of overlays and uniqie temporally build directories 2020-10-21 15:31:32 +02:00
lanefu
70faacfeef tweak variable expansion for improved_git (#2262)
* tweak variable expansion for improved_git

* Update general.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-10-18 20:35:09 +02:00
Igor Pečovnik
448484f6d8 Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC (#2254)
* Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC

Tested CLI and desktop image, but needs cache creation and repository before it will be possible to build without error.

* Update Groovy compiler for chroot

* Adjust pkg dependencies for groovy

Sadly htop doesn't build
2020-10-14 22:50:11 +02:00
Igor Pečovnik
e8f961c9c7 Mitigate git server failures by retrying git commands several times. (#2251)
* Mitigate git server failures by retrying git commands several times.
* Bugfix - commit type was not working at all. Now it works
2020-10-14 08:36:21 +02:00
Igor Pecovnik
0443bb082d Bugfix - create hash-beta directory when initializing directories 2020-10-12 20:32:54 +02:00
Igor Pecovnik
dc8300a638 A pack of minor fixes:
- remove Debian stretch from image creations.
- if LOCAL_MIRROR is defined use just that, not armbian upstream packages
- move aptly web server from 8080 to 80
- adjust welcome motd
- remove Ubuntu Eoan from distribution selection menu
2020-08-30 16:13:38 +02:00
Igor Pečovnik
82cf5d3b16 Fixing toolchains (#2160)
* Fixing toolchains

* Tested toolchain download
2020-08-25 22:42:06 +02:00
Igor Pecovnik
2c3a15f2d9 Infrastructure bugfix. Moving toolchain to a new folder seems to be the treat.
ToDo: fix this for older branches.
2020-08-25 19:08:24 +02:00
Igor Pecovnik
2b0b13cced Forcing toolchain download via HTTP and change location of torrent files. 2020-08-24 20:23:59 +02:00
Igor Pecovnik
7cb7de30be Revert "Workaround for Snap-less Chromium on Focal by downloading it from Debian (#1982)"
This reverts commit faac552921.
2020-08-04 15:16:09 +02:00
Igor Pecovnik
74483bc629 Improve / fix building images directly from repository 2020-08-03 20:25:34 +02:00
Igor Pečovnik
75382d816b Remove deprecated and add most recent GCC compilers (#2092)
* Add most recent GCC compilers
* Remove obsolete compilers
* Adjust compiler for RockpiS Uboot
* Remove deprecated compiler definitions
* Resolve small bug and building Espressobin
* Small cleanup
2020-07-17 10:34:46 +02:00
Igor Pecovnik
9020803f1d Update kernel configs due to logo support, adjust patches
Now always create logo, but enable only on request, where defined (Pinebook, Teres, ...)
2020-06-28 17:13:32 +02:00
Igor Pecovnik
7bfc49b22c Fix rootfs torrent downloadinging. 2020-06-27 19:27:53 +02:00
Igor Pečovnik
7d758026b5 Enable kernel boot splash, env and bootscript files cleanup, upstream patches (#2065)
* Initial commit for kernel boot splash
* Add startup files to disable bootlog when system is up / down
* Update logo, remove deprecated one
* Introduce new u-boot variable bootlogo
* Adjust kernel config
* Make logo possible on Odroid XU4
- add legacy and current upstream patches
- delete xu4 environment since its not used
* Cleanup C2,C4, both tested, logo works on mainline,
- adding legacy upstream patches for c4
* Enable bootlogo by default on Odroid N2
* Enable logo on RK3399 desktop images
* Cleanup the rest of the environment files
* Add initrd hook that copy splash file to initrd.
* Missing logo bits for one boot scripts
* Enable boot logo on Pinebook A64
* Enable bootlogo on Teres
* Update config
2020-06-27 19:14:38 +02:00
Igor Pečovnik
cc3b7d1b0e Resolve one Shellcheck bug and add latest Linux mint as supported (#2062) 2020-06-25 08:54:12 +02:00
Igor Pečovnik
8b350f386f Mini bugfixes related to shellcheck and changes to beta building (#2057)
https://github.com/armbian/build/pull/2054
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 13:16:25 +02:00
lanefu
463e9b72fc fix default var parsing quirk with ntp
having var in double quotes evaluates space default differently..


```
lane@billroyall:~/GIT/build$ ntpdate -s "${NTP_SERVER:- pool.ntp.org}"
Error resolving  pool.ntp.org: No address associated with hostname (-5)
lane@billroyall:~/GIT/build$ ntpdate -s "${NTP_SERVER:-pool.ntp.org}"
```
2020-06-23 21:52:53 -04:00
Manuel Rüger
68b6d2ead0 Shellcheck fixes 3 (#2054)
* lib/general.sh: Lint via shellcheck

* lib/compilation-prepare.sh: Lint via shellcheck
2020-06-23 20:15:20 -04:00
Werner
5f6a959cd6 Replace gpgv1 (#2047)
Not haven the common gpg package leads into verification error (https://forum.armbian.com/topic/14455-error-verifying-gcc-linaro-2013/) but is also marked as deprecated (https://packages.ubuntu.com/focal/gpgv1)
2020-06-21 17:34:19 +02:00
Igor Pecovnik
7b2dd51f86 Repository management fixes
Let's leave DEV kernels as is

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-18 17:39:09 +02:00
Igor Pečovnik
fda0e22951 Improve all kernel building (#2017)
* Improve all kernel building

Store hashes and rebuild only changed kernels. TBD: support for patch directory not fully implemented yet

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Add support for patch directory checking

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Update lib/build-all-ng.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/build-all-ng.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/compilation.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/compilation.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update build-all-ng.sh

* Disable u-boot hashing for now

* remove banana r2

breaks compilation ... no time for inspection ATM

* typo

* Change s5p6818 to COMMIT instead of TAG

TAG points to a different HASH and its not posible to resolve hash without cloning. This can be addressed later, but now commit HASH will do.

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Bumping to new version

* Bumping to new version

* Bump

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* few changes

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Test

* Bumping to new version

* Bumping to new version

BOARD
Cubox i2eX/i4

* Bumping to new version

imx6 current
meson-gxl current

* Bumping to new version

linux-image-current-imx6_20.08.4-trunk_armhf.deb
linux-image-current-meson64_20.08.4-trunk_arm64.deb

* Bumping to new version

Adding following kernels:\n

* Bumping to new version

Adding following kernels:

linux-image-current-imx6_20.08.4-trunk_armhf.deb
linux-image-current-meson64_20.08.4-trunk_arm64.deb

* Bumping to new version

Adding following kernels:

linux-image-current-meson64_20.08.5-trunk_arm64.deb
linux-image-current-sunxi_20.08.5-trunk_armhf.deb
linux-image-legacy-meson_20.08.5-trunk_armhf.deb
linux-image-legacy-s5p6818_20.08.5-trunk_arm64.deb

* fix versioning

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Bumping to new version

Adding following kernels:

linux-image-current-meson64_20.08.1_arm64.deb

* Put version back

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Bumping to new version

Adding following kernels:

linux-image-current-imx6_20.08.0-trunk_armhf.deb
linux-image-current-meson64_20.08.0-trunk_arm64.deb
linux-image-current-mvebu_20.08.0-trunk_armhf.deb
linux-image-current-mvebu64_20.08.0-trunk_arm64.deb
linux-image-current-odroidxu4_20.08.0-trunk_armhf.deb
linux-image-current-rockchip_20.08.0-trunk_armhf.deb
linux-image-current-rockchip64_20.08.0-trunk_arm64.deb
linux-image-current-sunxi_20.08.0-trunk_armhf.deb
linux-image-dev-mvebu_20.08.0-trunk_armhf.deb
linux-image-dev-rockchip64_20.08.0-trunk_arm64.deb
linux-image-legacy-meson_20.08.0-trunk_armhf.deb
linux-image-legacy-meson64_20.08.0-trunk_arm64.deb
linux-image-legacy-mvebu_20.08.0-trunk_armhf.deb
linux-image-legacy-mvebu64_20.08.0-trunk_arm64.deb
linux-image-legacy-odroidxu4_20.08.0-trunk_armhf.deb
linux-image-legacy-rk3399_20.08.0-trunk_arm64.deb
linux-image-legacy-rockchip_20.08.0-trunk_armhf.deb
linux-image-legacy-rockchip64_20.08.0-trunk_arm64.deb
linux-image-legacy-rockpis_20.08.0-trunk_arm64.deb
linux-image-legacy-s5p6818_20.08.0-trunk_arm64.deb

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

linux-image-dev-rockchip_20.08.0-trunk.2_armhf.deb

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Report error code, adjust version

* Adjust ver

* Add another switch

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Co-authored-by: root <root@workstation>
2020-06-17 11:38:17 +02:00
The-going
dcc6e791da Offlinework (#2019)
* Delete FORCE_CHECKOUT, IGNORE_UPDATES variables

There are currently two questionable variables.
They are the keys in the structures:
'if [[ $FORCE_CHECKOUT == yes ]]; then' in the function 'fetch_from_repo()'
which is set by default by the script 'main.sh'
'[[ -z $FORCE_CHECKOUT ]] && FORCE_CHECKOUT=yes'

Next in the script 'main.sh'

if [[ $IGNORE_UPDATES != yes ]]; then
    display_alert "Downloading sources" "" "info"
    fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"

This key has aged. It can't work properly today.
We should always clear the sources before starting the build.
For this reason, these two keys in these places do not make any sense.
You can just delete them.

* Working offline for sources

This is useful when building recursively for multiple platforms,
when some resource on the Internet is frozen.
To do this, I entered a new variable 'OFFLINE_WORK'

* New ability to work in offline mode

* Skip check prepare host
* Add unset OFFLINE_WORK in lib/build-all-ng.sh

Sources, time and host will not be checked
Now you can collect packages without accessing the Internet
2020-06-14 22:58:02 +02:00
The-going
dc95a3f9a3 Fixed checking the target git sources (#1998)
* Exit if you can't create a directory
  Otherwise the entire folder structure will crash

* git rev-parse --git-dir will always return ".git" line
  if we are in the git repository folder.

When there is a symbolic link in the path, some functions
will not return what is expected. This condition is always true.
$(git rev-parse --show-toplevel) != $(pwd)

This commit fixes this threat
2020-06-10 18:15:08 +02:00
Igor Pečovnik
faac552921 Workaround for Snap-less Chromium on Focal by downloading it from Debian (#1982)
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-22 00:26:27 +02:00
Piotr Szczepanik
3cbe24ba11 Added python3-distutils to host deps - needed by mainline u-boot for rk3328 2020-05-06 18:05:20 +02:00
Werner
bface71887 Remove Xenial from supported host OS (#1918)
* Remove Xenial from supported host OS

... and adjust comments.

I'd suggest add `tricia` as codename for Linux Mint based on Bionic somewhere but not sure where to put it.

* Add Debian Buster and Linux Mint

compatible build hosts

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-04-27 12:21:50 +02:00
Werner
f78591db5b Fixes building on Linux Mint Tricia (Bionic based) (#1914)
* Replace apt with apt-get unless in chroot
* Improve support for Buster and Mint Debbie

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-04-25 21:25:05 +02:00
Przemysław Sztoch
d07647e5ce Better logging for external userpatches path and generate a lot of empty folders only once (#1897)
* Better logging for external userpatches path.
* Genrate a lot of empty folders only once
* Better handling for COMPRESS_OUTPUTIMAGE
2020-04-20 08:39:29 +02:00
Igor Pečovnik
b9ebc7a378 Improve PGP keys loading (#1863)
Closes https://github.com/armbian/build/issues/1862
2020-03-30 13:16:00 +02:00
Igor Pečovnik
7b28c93b33 Add support for commit HASH (#1816)
* Applying better gitfu
* Bugfixes and optimisation
2020-03-01 10:43:20 +01:00
Igor Pecovnik
185386d0b9 Revert "Add support for commit HASH."
This reverts commit 7c9241ff89.
2020-02-28 18:50:22 +01:00
Igor Pecovnik
7c9241ff89 Add support for commit HASH.
Shallow checkout works only on recent Git servers. It works on Google kernel mirrot, but not on kernel.org
2020-02-27 22:37:51 +01:00
Igor Pečovnik
47e151d831 Fix Pinebook and Teres (#1800)
* Port ANX78xx Pinebook / Teres LCD panel driver from 5.6-rc1

* Move Teres U-boot to 2020.01 ... it boots with enabled screen now.

* U-boot 2020 needs some extra Pyton utils when packing sunxi bootloader. Adding to native and Docker build dependencies.

* Add Pinebook lid wakeup

* python3-dev is also needed dependency
2020-02-14 18:50:00 +01:00
Igor Pečovnik
2b3997df53 When seeking for rootfs cache files it also checks previous version. This solves problem described in [AR-166] (#1790) 2020-02-09 10:25:41 +01:00
Igor Pecovnik
70c3a79c3e Backend / repository management fixes and improvements 2020-02-02 23:56:32 +01:00