Commit Graph

100 Commits

Author SHA1 Message Date
Igor Pečovnik
dedf5b3bfc
Proper BASH / ZSH changing. (#2559)
Not all variants have BASH installed on the same location. Now scripts checks where it is.
2021-01-19 14:33:21 +01:00
Igor Pecovnik
dc544f4acd ZSH - disable auto update since we provide update via package 2021-01-10 16:04:40 +01:00
Igor Pečovnik
a4f315c72d
Add support for ZSH / TMUX / oh-my-zsh (#2478)
* Add support for ZSH / TMUX / oh-my-zsh

* Selecting default shell at 1st run

* Install ZSH by default except on minimal image

* Lets rather create armbian-zsh package

* - fix remaining ZSH problems
- add systemd timer to remove default desktop autologin feature
- change DESKTOP_AUTOLOGIN to disabled by default

* Few small improvements

* Oneliner for revering all users back to BASH if package is uninstalled

* Properly escape variables

* Fixing chmod

* More cryptic awk magic to fix permissions for all normal users that are getting zsh magic
2020-12-21 00:44:22 +01:00
Igor Pecovnik
583c8ddf6e Revert "Revert "Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)""
This reverts commit 7a7530849d.
2020-12-19 15:08:55 +01:00
Igor Pecovnik
7a7530849d Revert "Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)"
This reverts commit f8cd769b46.
2020-12-16 11:00:14 +01:00
The-going
f8cd769b46
Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)
Try to create bootloader and kernel packages several times during
one VM session and you will see in /tmp/ many temporary folders like:
 tmp.6D2bjgqMQ9
 tmp.7Uj9BtIXPy
 tmp.f3a2tmt7Cu
......
Some folders contain armbian-config packages

Temporary folders should be deleted!
2020-12-15 22:24:47 +01:00
Igor Pečovnik
3ddd91de71
Add several small improvements for building all images (#2365)
* Add several improvements for build all images / kernels
* More small fixes
* Adjust version
2020-11-22 08:54:41 +01:00
Igor Pecovnik
37b50f154a Bugfix related to firmware creation 2020-11-12 19:46:47 +01:00
Igor Pečovnik
fc3e56bf7a
Left overs (#2330)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here

* Add delete after option
2020-11-11 19:29:50 +01:00
Igor Pečovnik
694b2313dd
Cosmetical: exchange mv with rsync (#2329)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here
2020-11-11 19:25:51 +01:00
Piotr Szczepanik
ed428c986c
Enable multithreading for kernel packaging (#2290) 2020-11-05 22:06:36 +01:00
Werner
4532f2b1f7
Fix mixing sources due to improper moving of debs (#2293) 2020-10-31 20:00:43 +01:00
Igor Pečovnik
98f1df4e79
More fixes for (not)improved_git (#2287)
* Reverting improved_git to normal in the patch creating function

* Remove two more variants of improved_git which is causing us headache
2020-10-27 20:41:53 +01:00
Igor Pečovnik
2793bd15d2
Reverting improved_git to normal in the patch creating function (#2286) 2020-10-27 19:20:53 +01:00
Igor Pečovnik
51566cc479
Bugfix for multicore compilation (#2280)
* Bugfix for multicore compilation

* Missing second part
2020-10-25 19:13:13 +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
Igor Pecovnik
56c2ee5382 Backend hash creation bugfix 2020-10-18 16:34:44 +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
668e764357 Backend - split upstream changes to beta and stable 2020-10-04 16:55:11 +02:00
Igor Pecovnik
f41e3b5a2a Typo backend related bugfix - single quote was placed at the wrong location 2020-09-06 23:44:31 +02:00
Igor Pecovnik
2b1d1dde28 Internals - properly calculated hash for kernel patches 2020-09-06 14:42:21 +02:00
Igor Pečovnik
82cf5d3b16
Fixing toolchains (#2160)
* Fixing toolchains

* Tested toolchain download
2020-08-25 22:42:06 +02:00
Piotr Szczepanik
ac95cf5681
Fixed running compile_uboot directly - broken since bce24a2 (#2139) 2020-08-08 22:52:48 +02:00
Igor Pecovnik
7427b0b0c4 Remove resolvconf hard dependency on armbian-config
https://github.com/armbian/config/issues/98
2020-07-31 19:14:34 +02:00
Igor Pečovnik
97333825be
Reverting bce24a2e8d with a condition. (#2091)
@the-going
2020-07-14 13:10:44 +02:00
Igor Pečovnik
56f7fa2b9e
Improve patch making (#2070)
* Improve patch making
* Better default patch name
* Remove the patch file in the sources since we only need to extract the name
2020-07-08 09:28:55 +02:00
Manuel Rüger
4555a7aed5
Shellcheck fix4 (#2061)
* compilation.sh: Lint with shellcheck

* configuration.sh: Lint with shellcheck

* debootstrap.sh: Lint via shellcheck

* Update configuration.sh

* Update compilation.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-25 11:07:24 +02:00
Igor Pecovnik
ce5d51c2de
Another small shellcheck issue
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 07:39:00 +02:00
Martin Cross
108e86f02d
Check the return code from 'make menuconfig' and abort compilation with a suitable message. (#2037) 2020-06-18 21:40:21 +02:00
Igor Pecovnik
d9770e2a86
[CI actions] Also watch kernel changes in kernel configuration 2020-06-17 13:36:48 +00: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
bce24a2e8d
delete Checking out sources from compile_uboot() (#1999)
At this point the repository is already clean,
and the next line is not needed.

Fix issues #1952
2020-06-10 12:37:20 -04:00
Igor Pecovnik
34d3529d16
Bugfix: add missing dependency to armbian-config
Closes https://github.com/armbian/config/issues/88

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-08 17:32:49 +02:00
Igor Pecovnik
19226f8a26
Bugfix: kernel sources packing
Package name was formed before patching process, while it must do that after

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-03-27 20:18:48 +01:00
Igor Pecovnik
bc16dc123f
Spaces cleanup 2019-12-31 13:47:01 +01:00
Igor Pecovnik
5074b7cd5c
Re-read kernel version after patching and some cleanup 2019-12-31 13:45:21 +01:00
Igor Pecovnik
7818c2a040
Refactor wifi patching. Need to fix mvebu packaging patch ... 2019-12-31 13:25:58 +01:00
Piotr Szczepanik
cfaee9938a Switched ATF cleaning method to distclean 2019-11-30 23:11:06 +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
Igor Pecovnik
b9adf0ea48
Revert remove redundant cleanup (#1567)
U-boot runs several targets. Cubox, Helios4, ... and they are not cleaned at checkout. @zhangn1985
This reverts commit 357926add6

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-27 19:17:49 +02:00
zhangn1985
357926add6 remove redundant cleanup (#1567)
source code cleanup should be done in source update/checkout step.
thus no need redundant cleanup in apply patch step.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-09-19 11:02:21 +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 Pecovnik
34a109fbf9
Typos & small bugfixes, odroidxu4 and mvebu64-default kernel adjustements + upstream kernel patches
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-01 10:33:47 +02:00
Igor Pecovnik
29472c52b3 Revert "relocate 'compilation_prepare' prior too patching"
This reverts commit b9173d7850.
2019-07-12 10:42:33 +02:00
Martin Ayotte
b9173d7850 relocate 'compilation_prepare' prior too patching 2019-07-11 15:37:05 -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
Igor Pečovnik
ef5a797483
Fix u-boot handling (#1436)
This principle is needed for Allwinner boards. For others it needs to be checked. For now this fixes when building SPI boot loader.
2019-07-02 20:00:12 +02:00
lanefu
7d0e676e93
Revert "lib: more shellcheck fixes (#1430)" (#1432)
This reverts commit 1e050839b2.
2019-06-27 22:23:39 -04:00
Manuel Rüger
1e050839b2 lib: more shellcheck fixes (#1430)
thanks @mrueg !
2019-06-27 21:19:42 -04:00
Igor Pečovnik
633242e835
Changes to build script and patches adjustment (#1423)
- change console welcome text
- changed display manager to lightdm by default and remove nodm completly
- desktop login manager enabled by default, toogle can be done with armbian-config
- added URL to the build script and commit hash to /etc/armbian-release file
- added debconf-utils,html2text,mmc-utils,sunxi-tools to the base and additional pkg list
- added synaptic package manager and onboard keyboard to the desktop base
- changed motd console welcome text to: Welcome to Debian Stretch with Armbian Linux 5.1.6-sunxi
- added "logout" to the panel/menu
- added normal users to additional groups: disk tty users games
* Adjust tabs and alter displaying build options at the end - hide empty ones
* Fix wrong MOTD message, adjust logic to autologin by default and request login for both notebooks
* Making fs cache naming more intuitive, rename script
* Move additional kernel drivers into separate file. Add AUFS for K5.1 this way, attach wireguard sources to last known working tag. master is broken atm
* Add two more extra wireless drivers 88x2BU, (improved) 8811EU and introduce switch EXTRAWIFI which is enabled by default
* Move 8812AU to the same version we have now. More recent has some performance issues in AP mode. Adjust configuration, add mvebut-dev 5.1.y kernel
* Enable Wireguard also on 3.10.y since it was fixed upstream. Attach bach to master branch since its working now
* Rockchip64 & RK3399 - upstream patches and remove deprecated patches, mvebu64 add DEV kernel attached to 5.1.y
* Enable BT on Tinkerboard CLI images as well
* cubox-i move to 5.1.y and enable missing HDMI
* Bugfixes for adding wireless driver to Kconfig. Adjusted RK3399 kernel due to upstream changes at FriendlyARM - does not boot yet. Changes has to be extract from their commits. Removed patches with RTL8188EU since we add more recent driver with a new precedure. Small fixes mvebu-default, udoo-next, s56818-next, ... remove deprecated patches.
* Boot-able RK3399-default config, add upstream patches for K4.4.y mvebu-default/udoo-next
* Adjust overclocking patch to meet upstream changes
* Odroid XU4 - remove deprecated kernel patches
2019-06-26 07:31:11 +02:00