Commit Graph

177 Commits

Author SHA1 Message Date
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
Igor Pecovnik
d9e6106c29 Tiny development related feature. Adding local mirror if defined. 2019-10-03 20:06:45 +02:00
Igor Pecovnik
2c0adc006a General: strenghten host preparation with downloading aptly keys from two different servers 2019-09-29 18:53:02 +00:00
Igor Pečovnik
0d0cd7f191
Remove Debian Jessie (#1560) 2019-09-16 22:13:55 +02:00
Igor Pečovnik
09402b263d
Better wording 2019-09-05 17:21:40 +02:00
Igor Pecovnik
ce3d35546f Interal: improve aptly packaging handling 2019-09-04 22:48:05 +02:00
Igor Pečovnik
1221d59233
Build all targets RFC (#1515)
* Introducing build-all-ng
* Implementing REBUILD_IMAGES='board1,board2,...' for rebuilding certain images only
* Add optimisations when building kernels - only cycle trough needed targets. Adding variable for defining whether an image is build, otherwise only BSP is made.
* repository manipulating RFC
* Add bianco deb file that is added by default if repository is clean
* Switch to gpg2 signing method, small bugfix
* Create subdir for debs and debs-beta
* Synaptic bugfix: installing indexing tools https://forum.armbian.com/topic/8021-orange-pi-one-synaptic-package-manager-search-very-slow/?do=findComment&comment=74918
* add all modules by default to Odroid N2, but leave them commented
* Bugfix: not making any builds when selecting kernel_only
* Remove EXTERNAL=yes ... move armbian-config and armbian-firmware into main compilation area, drop others since they are deprecated anyway. This will also enable multi threaded images making
* Move armbian.list to create_sources_list function. Replace NTP by Chrony. Remove armbian-firmware from PACKAGE_LIST and RockPi 4A (#1528)
* Replace NTP by chrony. Remove installion of outdated armbian-firmware from reposity.
* added RockPi 4A
* New format for board config
* Fix Bluetooth dependencies for minimal package - add rfkill to family related installs
* Moving networkd-dispatcher from minimal image
* Cubox-i: update default config
* Improving umount process
* Add purgesource feature
* Add FULL_DESKTOP to install few more applications on top of our desktop - notebooks should * rk3399 default: adjust patches and configuration
* Enable full desktop on most powerfull boards and notebooks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 22:13:13 +02:00
Igor Pečovnik
da903f2d65
Replace Etcher with dd + verify, tested under Docker (#1522)
* Replace Etcher with dd + verify, tested under Docker

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 00:12:36 +02:00
zhangn1985
e71c145cb7 move armbian source to create_sources_list (#1532)
1. move armbian source to create_sources_list
2. check DOWNLOAD_MIRROR
3. alse change prebuild rootfs's source list

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-09-01 00:11:40 +02:00
zhangn1985
27e22f6e36 more clean up for source code (#1488)
some patches will create new files, they can be removed by `git clean -qdf`

but when repo has update, git clean is forgot, thus leave new files still in repo.

add git clean back.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-07-30 22:24:00 -04:00
Igor Pecovnik
07e00d8a2f
Cache creation: revert 568b8d7d55 since we already have this implementation. Go up with cache version. Fixing https://forum.armbian.com/topic/10989-armbian-build-stretchbuster-does-not-install-additional-packages 2019-07-20 08:45:11 +02:00
Igor Pečovnik
e633fac810
Bugfix
Forgot about beta numbering scheme 568b8d7d55
2019-07-17 19:59:54 +02:00
Igor Pecovnik
568b8d7d55
build script: make rootfs cache hash (minor x.y*) version dependent to not keep too old caches and that cache can be forcefully rebuild only by changing minor version number. If cache is rebuild only with new packages version, hash stays the same, while we in some cases need to change filename which is served over torrents. 2019-07-17 19:36:13 +02:00
Przemysław Sztoch
48d6548471 Better armbian.txt, unified sha filename, armbianEnv from userpatches. (#1454)
* Unified name for sha file.

* Better information about build in armbian.txt

* armbianEnv.txt from userpatches folder

* Better armbian.txt.

* Lost second argument for fingerprint_image (armbian.txt)
2019-07-11 09:57:33 -04:00
Przemysław Sztoch
bc0fbb85bc Add USERPATCHES_PATH optional setting to config file. (#1450)
Required if userpatches folder is conflicted between two different configs.
This is frequent and requires maintaining two copies of the builder.
2019-07-09 22:50:49 -04:00
Przemysław Sztoch
31b56af49f Default config as symlink and better kernel package metadata (#1446)
* Default config as symlink for comfort switching between several custom boards.

* Better metadata for kernel packages.

* Local changes with detailed git diff.

* Support for gz and bz2 compression (supported by balenaEtcher).
Support for generation sha without 7z compression.
Bug fix for current directory changing in 7z compression.

* Remove bzip2 and use fast pigz for gziping.

* Deleted typo with "gz" in 7z section.
Separated parameter for gpg.

* Information about exit command.
2019-07-06 22:35:42 +02:00
Igor Pecovnik
8ac17c0d6c [ general ] More bullet proof Aria2 default configuration. Removing torrent dl from default and force single source. There seems to be problems with multiple downloads at once in current version. 2019-06-02 21:44:56 +02:00
Igor Pečovnik
e8a79a85db
Download with Aria2 (#1384)
* [ general ] Change Toolchain download method. Introduce torrent downloads by using Aria2. If torrent download fails it proceeds to download from servers. It can download from all mirrors at once, so download speed is dramatically increased. @mzhboy DOWNLOAD_MIRROR parameter is not needed here anymore. The same method is used to download rootfilesystem cache. Based on ideas from here https://github.com/armbian/build/pull/1364

* Added yet another mirror for speeding up the download process, few small adjustements for torrent downloading

* Optimising direct download when DOWNLOAD_MIRROR is set to 'china' due to aria2 download limitations

* Both mirrors support HTTPS, changing
2019-06-02 19:49:59 +02:00
tcme
24afe02e88
Add oldcache to clean target comment
text from 376c1b0551/config/templates/config-example.conf (L10)
2019-05-31 12:01:20 +02:00
Igor Pečovnik
ff3bb4265f
Merge pull request #1371 from mzhboy/ups
bug fixes and enhancements
2019-05-18 13:19:20 +02:00
may
2b584bb5e0 [general] new option DOWNLOAD_MIRROR to select download mirror
- set to `china` to use `mirrors.tuna.tsinghua.edu.cn`
 - leave it unset to use official source.
2019-05-15 18:47:29 +08:00
may
3407150565 [general.sh] change ntp server to pool.ntp.org 2019-05-15 17:33:23 +08:00
may
d56eb10c8d [general] remove duplicate download item 2019-05-15 17:33:12 +08:00
Igor Pecovnik
18f6113751 Revert "some enchantments for build scripts (#1364)"
This reverts commit 7f1c5b19cd.
2019-05-15 10:00:23 +02:00
mei
7f1c5b19cd some enchantments for build scripts (#1364)
* downloader aria2 replace curl

aria2 is a fast downloader and it can do much more than curl
 - skip download when target file exists
 - restart an interrupted download session
 - multithreading

* remove duplicate download item

* change btrfs compression to zstd and no force compression

* mkfs.btrfs options '--data single --metadata single --label btrfs'

disable dup(duplication) on microsd card

* [fstab] change mountopts[btrfs] compression method to zstd

lzo is no fater than zstd because the low 4k write performance on my
Samsung EVO+ 32GB microsd card.
meanwhile the best io size is above 32k based on benchmark

* replace dd with truncate, create a sparse disk image

* create btrfs subvolume by default

subvolume @ as rootfs, mount at /
subvolume @home as /home, mount at /home

* fix extraargs in armbianEnv.txt

* remove tmpfs mount on /tmp

A zram block device will mount on /tmp by
/usr/lib/armbian/armbian-zram-config.

And instead, mount /media as tmpfs.

* [rsync] add '--inplace' option, optimize for btrfs

* [general.sh] change ntp server to pool.ntp.org

* [general] new option to setup btrfs compression method

for support old and boring 3.x kernels

* [general] set btrfs space cache based kervel version

kernel version above 4.5 select 'v2' as default

* [btrfs] BTRFS_COMPRESSION accept compression ratio

BTRFS_COMPRESSION=zlib
BTRFS_COMPRESSION=zstd:5
BTRFS_COMPRESSION=zstd:12 are acceptable

* [btrfs] set btrfs compression to lzo when input is illegal

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* fix btrfs default compression

* display $fscreateopt

* display_alert BTRFS_COMPRESSION

* try fix BTRFS_COMPRESSION variable not working

* debug fetch_from_repo

* configuration.sh debug BTRFS_COMPRESION

* update logic

* debug checking btrfs compression

* fix variable check,fix local variable usage

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* Revert "try fix BTRFS_COMPRESSION variable not working"

This reverts commit 9814cfb054.

* Revert "debug fetch_from_repo"

This reverts commit ba571f0d89.

* add default compression method for mountopts

* remove useless var

* remove debug

* remove debug

* [general] set btrfs space cache based on kernel version

kernel version above 4.5 select 'v2' as default,
below 4.5 select 'v1' as default

* [general] reintroduce USE_MAINLINE_GOOGLE_MIRROR

* [general] case replaces 'if xx ;elif xxx;fi'

* [general] fix always downloading linux-firmware.git

clone to new dir 'linux-firmware-git' instead the old '$plugin_dir/lib/firmware'
,and then copy files as hardlinks.

* [general] create soft link instead of moving directory

* [btrfs] change rootfs subvolume name to @$RELEASE

now, the rootfs subvolume looks like @stretch,@bionic
it is possible to use different distribution in the same btrfs
partition.
2019-05-14 18:37:00 +02:00
Igor Pecovnik
552db3d323 Buster and Disco releated adjustements. 2019-05-13 07:47:29 +02:00
Igor Pecovnik
2bd7f8efbd [ Odroid N2 ] Added Odroid N2 with mods necessary to build from sources. Made a few tests builds ... it works at least as good as stock. 2019-05-10 10:27:01 +02:00
Igor Pecovnik
181c97055c [ buster / disco ] Disable extra-package creation and repository since its broken and represent lots of work 2019-04-20 17:32:14 +02:00
m][sko
24c81d1b05 Ubuntu 19.04 support (#1351)
* ubuntu 19.04 support

* ubuntu 19.04 support 2

* ubuntu 19.04 support 3

* add netplan config
2019-04-19 17:14:57 +02:00
Igor Pecovnik
b92f11e89a [ added Debian buster ] Initial commit. It builds, but its not tested nor fine tuned. 2019-04-17 21:39:54 +02:00
Igor Pecovnik
dfa23380ea [ general ] Linaro compilers update to 2019.02 2019-04-11 00:32:25 +02:00
Igor Pecovnik
b2eea32cb4 [ general ] Locales fix/workaround to make warning go away 2019-04-05 09:37:47 +02:00
The-going
eb528f6c9e
Fix: incomplete cleaning of the source code.
Before you begin the compilation process,
we should always check and clean the sources.

If not, then warn the user.
2019-03-18 11:54:07 +03:00
Zhang Ning
1c86794d01 fix fetch gpg key behind a proxy
add --keyserver-options when http_proxy env is set.

for docker build, need to pass http_proxy to docker

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-03-12 14:44:02 +08:00
Zhang Ning
5d12350e9a change aptly apt key server to ubuntu
it's difficult to access sks-keyservers key server.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-03-12 14:38:06 +08:00
Igor Pečovnik
3a89ab7982
Adding CPIO package to the host list
That Docker Ubuntu image will also work as a host.
https://github.com/armbian/build/issues/1292
If that is all ...
2019-02-25 16:27:57 +01:00
Igor Pečovnik
2563185ffc
[ cosmetics ]
Suppress error at counting rootfs caches.
2018-12-20 13:31:13 +01:00
Igor Pecovnik
a4e4d56168 [ general ] Fixing aptly to a better workaround solution. 2018-12-03 07:50:21 +01:00
Igor Pecovnik
416bff334d [ build script ] update etcher 2018-11-26 20:52:29 +01:00
Thomas McKahan
819937ba99 Fix apt key fetch for aptly 1.2.0 2018-10-23 20:52:11 -04:00
Thomas McKahan
20d9d74446 Fix linaro 4.8 public key fetching 2018-10-23 01:10:17 -04:00
Igor Pecovnik
a4f069f9b1 [Buildscript] Update Etcher for CLI 2018-10-19 17:59:17 +02:00
Igor Pecovnik
fa88e5c2aa Implement bulding and packing all different boot firmware for Espressobin, bump u-boot and ATF sources to latest version 18.09 2018-09-09 23:22:50 +02:00
zciendor
bd83c60b23
Merge remote-tracking branch 'upstream/master' 2018-08-26 07:04:03 -05:00
Igor Pecovnik
128829764b Proper rootfs cleaning. Support for cleaning signatutures as well. 2018-08-15 18:45:29 +02:00
Igor Pecovnik
98c9505d0b Rootfs cache management bugfix due to added Bionic targt. 2018-08-15 15:31:58 +02:00
Igor Pecovnik
f5f7a0836a Moving numix-icon theme back to main package list since its fixed with this commit b293f186fb (diff-cc2879263e4a73e37cf60f2fa6b3fb64) , etcher download rfc, minor fixes 2018-08-10 22:44:55 +02:00
Igor Pecovnik
c721510e6e Add support for burning to SD card using Etcher for CLI 2018-08-03 19:35:19 +02:00
zciendor
ddf0ed1edf
Redo of implementation for feature request #947 on current master
This was already implemented with https://github.com/armbian/build/pull/948,
before but never made it into the master branch yet. Probably because the
development branch has been abandoned in the meantime and it is to much effort
now to merge it into master.

It includes all the cleanup changes from commit 08743d3 and has been successfully
tested on an Odroid HC1.

In addition to what is currently in the `luks` branch the following improvments
where done/added:

1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked
   after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock`
   won't work and you'll run into:
   https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass

   Apart from that it might be useful to always run `update-initramfs` at the end
   of the build process anyway, in case customize_image (userpatches) made some
   changes to the initramfs tools configs.

2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it
   might be desired by some users to disable enable SSH/dropbear access while
   still having LUKS support. E.g. if they have a device that has a display
   and keyboard.

3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair
   is generated and for convenience copied to the output directory along with
   the final image.
2018-07-31 16:02:26 -05:00
Igor Pečovnik
1d18b1ea1b
reverting back to main server 2018-07-17 11:43:16 +02:00
Igor Pecovnik
a9de196c42 Switch to backup server for downloading the toolchains. Speed is the same. 2018-07-01 19:03:36 +02:00
Igor Pečovnik
8aacc920da
Update aptly key 2018-07-01 17:21:36 +02:00
zador-blood-stained
6afe135989 Better handling for additional ATF toolchains 2018-06-13 19:23:00 +03:00
Igor Pecovnik
d1a9c8a768 Merging main libs into the stable. Hack for building Bionic on Xenial left out 2018-05-24 21:01:02 +02:00
zador-blood-stained
91852b6910 Enable initial Bionic host support 2018-04-29 15:32:18 +03:00
zador-blood-stained
7179692dca Sync and update host dependencies 2018-04-29 15:30:20 +03:00
Igor Pečovnik
2da24cfeeb
Adding bison GNU parser generation
Apparently needed for K4.16.y
2018-02-18 19:24:27 +01:00
zador-blood-stained
f8709ec46b Log build directory permissions to detect dpkg packaging errors 2018-01-27 17:43:18 +03:00
Igor Pecovnik
5ad2a947bb Cosmetic fix - showing error even it wasn't there when creating repository. 2018-01-20 22:39:15 +01:00
zador.blood.stained
5b1367a87b Add experimental check for WSL hosts 2018-01-12 17:15:59 +03:00
zador.blood.stained
e755245208 Improve unsupported release handling and drop Trusty workarounds 2018-01-05 12:56:32 +03:00
Olgierd Nowakowski
e07731de90 Add supported host system override 2018-01-04 18:41:25 +01:00
Igor Pecovnik
f411ba18c2 Small bugfix on repository creation error checkings 2017-12-08 16:44:28 +01:00
Igor Pecovnik
4a523d56e7 Repository handling RFC, purge debs directory if publishing is succesful, added local server, few extra checks ... 2017-12-06 17:38:38 +01:00
orpaltech
e35af2991c
allows untar to a samba share 2017-12-01 12:39:26 +03:00
zador-blood-stained
022f4889a1 Limit build host arch to amd64 only 2017-11-25 15:44:58 +03:00
zador-blood-stained
25defe223a Update Linaro toolchains 2017-11-25 15:42:40 +03:00
zador-blood-stained
6f00f00be7 Add a warning message for Ubuntu Trusty host support EOL 2017-11-04 20:21:58 +03:00
zador.blood.stained
e1ba411f16 Rework host dependencies installation
Drop dialog for installing hostdeps, use apt instead of apt-get, move
dialog to main dependencies list, update file list prior to installing
missing lsb-release
2017-11-04 16:48:02 +03:00
zador-blood-stained
889c598d90 Small bugfix
sudo is useless here as we are running as root already, and it may be
missing in some minimal configurations (like Docker and VM images)
2017-10-28 22:42:04 +03:00
Igor Pecovnik
e2d94b5055 Host dependencies fix. Aptly from (any) distribution is too old. Adding author repository and update from there. 2017-10-15 23:22:01 +02:00
Igor Pecovnik
6f0ff3e772 Bugfix and some other small fixes to repository management 2017-09-26 15:28:05 +02:00