Commit Graph

103 Commits

Author SHA1 Message Date
AndreiCherniaev
3a5cb09939
kill "EXTERNAL" (#3005)
e1526c438f (commitcomment-53297470)
2021-07-13 11:49:42 +02:00
Igor Pečovnik
9249d3f954
Add support for desktop board support package (#2972)
* Add support for desktop board support package

Extracting from https://github.com/armbian/build/pull/2776 which can be closed after.
* Desktop BSP creation is working, but need broader testing and some quick how-to
* Create empty files as examples where we can put things.
* Fixing Pinebook desktop bsp creation
* We need to have information about ARCH in the desktop bsp package. This ain't universal.
2021-07-06 00:59:50 +02:00
The-going
eca7bbb12d
Code cleanup and optimization (#2965)
* prepare_host_basic: Code cleanup and optimization

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Checking and install at the beginning the basic utilities

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Logging has been removed because it makes little sense.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-07-04 23:25:40 +02:00
Igor Pečovnik
fcb8b6f195
Code cleaning attempts (#2925)
* Move function run_on_sdcard to more appropriate location

* Focus on bash headers, unify, adjust (c)

* Adjust (c) to range

* Cleanup compile.sh

* Cleaning main

* Build all, main configs

* fine tunning

* Improve readme
2021-06-26 23:36:47 +02:00
Aristo Chen
78894792a5
Update URLs (#2870)
* Update URLs

* Update URLs

* Update URLs
2021-06-10 11:27:51 +02:00
Przemysław Sztoch
486a821a55
VENDOR, rock-pi-n10, RM_LIST for armbian-config/zsh, Static MAC for networkd (#2789)
* VENDOR, rock-pi-n10, RM_LIST for armbian-config/zsh

VENDOR parameter in configuration
zsh is the best of course...
Static MAC for networkd

ROCK Pi N10 (Radxa) - Initial support, knwon bugs:
- Problem with poweroff (kernel panic).
- DeviceTree is not fully verified, I suspect missing and unnecessary
entries.
- No support for NPU
- u-boot without NVME support
- I have doubts if I chose the right preboot loader for RK3399Pro, NPU
  and installed DDR memory.

* New RK3399Pro boot preloaders.

* rootfs checksum, DEBOOTSTRAP_LIST fix, output.log fix

Repaired checksum for rootfs
Added use PACKAGE_LIST_RM to purge DEBOOTSTRAP_LIST
Better logging to output.log
Fix for new host distribution detection (ie Debian Bullseye).
ubootdebs as new cleaning option
2021-05-11 21:50:14 +02:00
Igor Pečovnik
b6697fdfc9
- move new bsp packages to $release-utils (#2783)
- remove creating repository for xenial and stretch
- creating meta upgrade packages which are gone with apt autoremove

Tested on focal and stretch

Note: we lost BRANCH information from /etc/armbian-release file https://armbian.atlassian.net/browse/AR-731
2021-04-19 18:57:41 +02:00
Igor Pečovnik
780d07ea79
Renaming the BSP package to armbian-bsp (#2779)
* Renaming the BSP package to armbian-bsp

Extracted from https://github.com/armbian/build/pull/2776

* Update naming

* Create meta package for upgrade and remove deprecated mpv related config management

* Probably we want to keep our internal release version in filename
2021-04-18 22:03:53 +02:00
Przemyslaw Sztoch
738996ea33 Better user path config and support for etworkd
add user path for configuration scan
check for NetworkManager/networkd
support for bullseye

(i.e. path: config/cli and files: packages, packages.remove)
2021-04-09 10:27:52 +02:00
Igor Pečovnik
0cdffb29b0
Renaming DEV branch to EDGE (#2704)
* Change DEV to EDGE
* Renaming patches dev folder to edge
* Move patches into subdir where they will be archived.
* Relink patch directories properly
2021-03-24 19:01:53 +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
28768f4878 Internal: cache recreation doesn't need terminal
This remove pointless error when running cache recreate
2021-02-18 21:03:51 +01:00
Igor Pecovnik
8ba67b7537 Add armbian-zsh to the REPOSITORY_INSTALL packate list
If choosen, package from repository will be used
2021-01-26 15:05:33 +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
316941f2e5 Revert "Use current branches from Marvell Repo (#2382)"
This reverts commit 1dd5c1d1d6.
2020-12-05 21:07:11 +01:00
heaterC
1dd5c1d1d6
Use current branches from Marvell Repo (#2382) 2020-11-30 16:56:19 +01:00
Igor Pečovnik
a78eaa5aaf
Improve creating images from repository (#2340)
* Few cosmetic changes and updated configs
* Improve repository install
* Update configs
* Adjust configs
2020-11-14 19:29:39 +01:00
Igor Pečovnik
6cad8a346b
Add menu for building images from repository (#2256) 2020-10-15 21:55:56 +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 Pecovnik
9282a2c458 Change release order when building in interactive mode. Most recommended first.
1. Focal
2. Buster
.
.
2020-09-22 19:11:59 +02:00
Igor Pecovnik
c4e037e4b1 Amlogic FIP Switching from mirror to main storage
This will not show warnings anymore. Should be a cosmetical issue only
2020-09-22 19:07:09 +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
Manuel Rüger
37ee587662
main.sh: Switch kernel target order (#2063)
First option is selected in the UI, so have the recommended one there
2020-06-25 11:39:34 +02:00
Igor Pečovnik
213a5a6855
Enabling IGNORE_UPDATES back (#2036) 2020-06-18 20:21:00 +02:00
Manuel Rüger
9fa6069f9f
Shellcheck fixes (#2034)
* compile.sh: Apply shellcheck linting

* main.sh: Apply shellcheck linting

* fel-load.sh: Apply shellcheck linting
2020-06-18 10:06:21 -04: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
Igor Pecovnik
53e4bc2d38
Armbian firmware recreation and image upload bugfix
Cleaning was improper in case of retries

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-19 17:43:48 +02:00
Igor Pečovnik
26d377cd2a
Adding new feature REPOSITORY_INSTALL (#1933)
* Rework packages install that they can be installed from repository instead of local compile. Handy for making releases.
* Don't build ATF if you don't build u-boot
2020-05-10 14:36:22 +02:00
Neil Armstrong
07447294c7
Add support for Odroid c4 (#1923)
* meson-sm1: use amlogic-boot-fip to generate boot binary for SM1

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

* patch: add Linux and U-Boot patches

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

* configs: enable Odroid-C4

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2020-04-27 18:03:48 +02:00
Igor Pecovnik
887ef462fc
Declare Ubuntu Focal as supported rootfs
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-23 23:46:06 +02:00
Igor Pecovnik
e867773d15 Enable Ubuntu Focal in expert mode. It can be build now. 2020-02-02 23:54:59 +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
Igor Pecovnik
82e5a27026 Disable Focal from menu since its too broken. 2019-12-13 20:31:12 +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
ac309b9355
Repository managemenet doesn't work after https://github.com/armbian/build/pull/1612 This commit fixes the problem. (#1645) 2019-11-28 15:51:23 +01:00
Levin Du
77a2dba163 Support eval bash statement in ./compile.sh (#1616)
Currently, invoking compile.sh will run its mono task of building all the
components into a final image.

In some situation, especially when developing with Kernel or U-Boot, it is
handy to run a portion of that great task like:

    export BOARD=firefly-rk3399
    export BRANCH=dev
    # more to avoid the popup of dialog
    ./compile.sh 'fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"'
    ./compile.sh 'compile_uboot'

or use a profile to keep things simple:

    ./compile.sh default BRANCH=dev 'compile_uboot'
2019-11-26 18:00:39 +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
Levin Du
01fec6b3b4 lib/main.sh: allow correctly use of 'head' in BRANCH reference. (#1611)
In fetch_from_repo() from general.sh, when ref uses `head` as value, the ref_name
will be set to `HEAD`, which is later used as a subdir:

   local workdir=$dir/$ref_name

This commit makes the directories consistent with the workdir above.
2019-11-16 09:49:00 +01:00
Igor Pečovnik
0d0cd7f191
Remove Debian Jessie (#1560) 2019-09-16 22:13:55 +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
29fc989c1b
Bugfix: improper BUILD_MINIMAL handling and fixing terrible synaptic performance https://forum.armbian.com/topic/7422-terrible-synaptic-performance/
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-17 22:17:13 +02:00
Igor Pecovnik
737bd30d04
build_minimal related bugfixes. Cache didn't follow minimal filename
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-17 09:10:20 +02:00
Igor Pečovnik
f416c35c16
Adding minimal image (#1504)
* Minimal build setup (#1463)
* Netplan folder check & armbian-tools dependency on expect (and tcl) solved (#1464)
* Prevent netplan configration if it is not installed
* Resolved expect dependecy of armbian-tools
* More packages added for armbian-tools
* Added python3-apt and rsyslog to minimal installation
* Debootstrap variant doesn't play nice. We loose networking and it affects standard builds as well. Removing.
* Python-to-Bash conversion (#1470)
* Remove python3-apt dependency from BSP package, fix netplan error also on Disco and putting back varint=minbase ... tested Disco, Bionic
* Distinguish package list: *-minimal.list and *-desktop.list
* Enable Wireguard back which was removed by mistake. https://github.com/armbian/build/issues/1471
* Having minbase debootstrap variant for all will require further adjustements with current package base - backward compatibility. Minimal image is now Python free but need further testings ...
* Add wireless-regdb and crda to the pakage base, fix Ubuntu keyring warning while debootstrap.
* Add figlet to sort out missing fonts
* Moving few packages here and there. Bugfix when creating a cache package list
* Manually compared base images - they are the same with small insignificant difference. Minimal image has to be futher tuned
* Adjustements for bash powered lsb_release, adding some needed packages
* Fixed (no) network problems on Bionic/Disco
* Add rsync to debootstrap_list and few minor fixes
* Adjust text in lsb_release
* Olimex Micro A20: fix wrong boot config
* Remove duplicate depenedency
* Odroid C1: adjust kernel config
2019-08-16 19:21:12 +02:00
Zhang Ning
36b42f1968 merge KVIM1 u-boot blobs to odroidc2-blobs
less external git.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-08-05 12:42:02 +08:00
Tony
bc4883e5ee
Merge pull request #1480 from zhangn1985/kvim
add support for Khadas VIM1
add HDMI tweaks from Jonas Karlman
small config update
2019-08-05 00:13:05 -04:00
zhangn1985
35aedf08b0 main: show docker in build options (#1479)
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-07-26 14:24:37 +02:00
Zhang Ning
7e831b9ace add Khadas VIM1
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-07-26 13:07:33 +08: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 Pečovnik
79ef5ccf4d
Enable Debian buster
for non experts. Its in decent shape, small bugs will eventually be fixed and official release is just around the corner.
2019-07-06 11:33:33 +02:00