Commit Graph

148 Commits

Author SHA1 Message Date
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
Igor Pečovnik
89a5a394ba Add exceptions to support native Ubuntu 20.04 building (#1764)
* Add exceptions to support native Ubuntu 20.04 building, fix small bug related to SD card write verification.

* Improve first install steps by installing Dialog and lsb_release first. This left out since we moved host install after we choose what we will do ... dialog is essential for this. Second we don't wait properly for APT manager to finish the process. Fixed with this commit

* Suppress output

* Update OdroidXU4 dev config & patches
2020-02-02 10:31:30 +01:00
zhangn1985
3e38b4b715 build optimize for upstream (#1713)
* add tuna debian-security mirror

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* replace apt-get with apt

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* speed up desktop build

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2020-01-06 23:45:28 +01:00
Igor Pečovnik
c9ab99a84b Add signed torrents for compilers to Git and improve download logic (#1685)
* Add signed torrents for compilers to Git and improve download logic [AR-107]
2019-12-20 16:33:45 +01:00
Igor Pecovnik
5450c4ea3b Show release support status in menu for expert mode 2019-12-13 20:48:06 +01:00
Igor Pecovnik
8df3e98401 Add Debian 11 bullseye 2019-12-13 20:01:00 +01:00
Igor Pecovnik
6e54a48778 Exchange EOL Ubuntu Disco with Ubuntu Focal 20.04 LTS (development) 2019-12-12 15:51:42 +01:00
Igor Pečovnik
8f4b6bfc99 Create patches directory structure under USERPATCHES_PATH (#1628)
Closes [AR-74]
2019-11-24 19:57:57 +01:00
Igor Pečovnik
150ac0c2af Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00
zhangn1985
fd5dfeba14 btrfs-tools to btfs-progs (#1613)
* btrfs-tools to btfs-progs

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* Force rootfs cache recompilation

"Just in case" measure

* Change btrfs-progs in the package base too

* We will build Ubuntu 19.10 rootfs cache as well
2019-11-02 18:40:46 +01:00
Igor Pečovnik
01229d6672 bugfix: repository management
Storing everything into main instead of sub-repo
2019-10-22 20:14:28 +02:00