Commit Graph

443 Commits

Author SHA1 Message Date
Markus Hoffrogge
950c659a4a
Add option BUILD_ONLY to the build compile scripts (#4455)
* Rename default-build.sh -> build-tasks.sh

This commit is just a file rename without any
further code change before this script will be
refactored to improve build task structure
for partial building.

Refers to #4421

* Prepare build-tasks.sh for moving each build step to a dedicated function

This commit is an intermediate update to reflect
NO functional code changes of the particular
build steps before moving the unmodified code
into the appropriate function by copy/paste.
Only build_get_boot_sources() has slightly changed
to an appropriate if / fi structure.
Note: This .sh file is bash syntactically not correct.
The purpose of this commit is to leverage code review.

Refers to #4421

* Update build-tasks.sh function do_default() for filtered function calls

Function do_default():
  - Add $1 function parameter for filtering build tasks
    and assign this to local variable $_buildOnly
  - move "pseudo inline"-functions to the beginning of the script
  - replace the "inline functions" by filtered function calls
  - add BUILD_ONLY variable to the build epilog print

Refers to #4421

* Complete refactoring of build-tasks.sh for BUILD_ONLY support

- update indentation of functions build_get_boot_sources()
  and build_get_kernel_sources() to meet code style
- rename original function do_default() -> build_main()
- create new do_default() for backward compatibility and
  comment this one as deprecated
- call build_main "" from this deprecated do_default()
- cli-entrypoint.sh:
  - update call of do_default by build_main "${BUILD_ONLY}"

closes #4421

* Print final runtime as min:seconds

As with filtered build runtimes
may get below a minute, we would like
to get the runtime printed with seconds.

* Delete duplicate messages

* Fix the confusion of the choice of building the kernel

* Fix a typo in comment on do_default()

* Backward compatibility of KERNEL_ONLY and new BUILD_ONLY keys.

* interactive_config: replace KERNEL_ONLY on BUILD_ONLY

* Fix: Correct verification when an image is created

* Abort with error if BUILD_ONLY contains invalid build task names

- add function build_validate_buildOnly()
- call this function from build_main
- fix position of KERNEL_ONLY / BUILD_ONLY contradiction message
  (did log empty _buildOnly content all time)
- improve local variable names

* Improve final error message to list valid BUILD_ONLY task names

* Improve error message logging

- collect multiple invalid BUILD_ONLY task names in a single error message
- log final message for valid BUILD_ONLY task names on ext level
- simple exit with exit code 1 in case of error

* The RELEASE variable cannot be empty.

Additional conditions for checking RELEASE are unacceptable.

* Fix build_main() to use BUILD_ONLY inside instead of local var set from parameter $1

- build-tasks.sh:
  - build_main():
    - don't take parameter $1
    - replace usage of $_buildOnly by $BUILD_ONLY
    - added info messages on KERNEL_ONLY cases in case BUILD_ONLY was propagated
  - build_validate_buildOnly():
    - remove parameter $2
    - assign _buildOnly from global BUILD_ONLY accordingly
- cli-entrypoint.sh:
  - call build_main without parameter

* Choosing interactive_config if the goal is bootstrap

* fix: order of selection backward_compatibility_build_only

* Update function comments to match current state

- removed obsolete parameter of build_main call do_default()
- replaced :space: by :comma: in _kernel_buildOnly
  to leverage copy / paste for final repeatable command line
  printed after build

* Improve logic coding to filter build tasks

- build-tasks.sh:
  - added functions:
    - build_task_is_enabled()
    - build_task_one_of_is_enabled()
    - build_task_each_of_is_enabled()
  - updated existing build task filter logic
    to use function build_task_is_enabled
- config-prepare.sh, prepare-host.sh:
  - replaced existing build task filter logic
    to use function build_task_is_enabled

* Remove unused functions

- remove function build_task_one_of_is_enabled()
  and build_task_each_of_is_enabled()
  according to code review

Co-authored-by: The-going <48602507+The-going@users.noreply.github.com>
2022-11-27 00:05:46 +01:00
Igor Pečovnik
332a558228
When using PPA sources we need to run install_ppa_prerequisites (#4464) 2022-11-19 08:08:14 +01:00
David Kebler
6225c2004a
fix - improve display alert for installing basic packages on host to indicate the installation occurs on host not in container. (#4410)
Co-authored-by: kebler.net <kebler.net@gmail.com>
2022-11-11 11:48:26 +01:00
Oleg
cb9348c6dc
fix build rtl8723ds for kernel 6.0 (#4407) 2022-11-10 13:24:18 +01:00
Igor Pečovnik
c09e6bcab6
Error triggered when changing BSP package (#4394) 2022-11-08 12:38:11 +01:00
Igor Pečovnik
3e701a857a
Add initial RiscV support (#4387)
* Add initial RISCV support

* Add UEFI edge and current kernel configs

* Cleanup and adjust packages

* Those files were in wrong path

* Fix locations

* Ubuntu images built

* Remove Debian support as its too fragile

* Remove Pinta as it doesn't work under riscv

* Limitation is only for building images

* Remove obsolete switch

* Cleanup major arch config files

* Support for Docker building
2022-11-06 20:33:11 +01:00
hzyitc
b96ed3e313
Bugfix about debsums (#4363) 2022-10-29 17:51:12 +02:00
David Manouchehri
b5ba3c493f
Rename SERIAL_AUTOLOGIN to CONSOLE_AUTOLOGIN. 2022-10-26 11:47:19 -05:00
David Manouchehri
f037b773b9
Enable auto-login by default. 2022-10-26 11:39:06 -05:00
David Manouchehri
09f31750bb
Only enable serial logins if enabled. 2022-10-26 11:25:35 -05:00
Vyacheslav
e13d750814
Re-enable RTL8822CS in meson64-edge and for kernel 6.0+ (#4350) 2022-10-26 13:48:13 +02:00
The-going
bd72c996b7
Bump sunxi to 6.0.y (#4282)
* sunxi-6.0: initial state: add megous patches to series

* sunxi-6.0: Switch to v6.0.1

* wifi: Limit the version 6.0 for Realtek 88x2cs chipsets

* Adjust kernel configs

* Remove not needed patches

* Adjust broken patches

Co-authored-by: Igor <igor@armbian.com>
2022-10-25 20:39:08 +02:00
Oleg
d41125a5fd
move Jetson Nano EFI\Grub (#4284)
* move Jetson Nano EFI\Grub

* fix dtb for efi

* remove list module initrd curren\edge for Jetson Nano

* rename to  grub-sbc-media
2022-10-25 11:28:23 +02:00
Igor Pečovnik
6765f734cc
Bump rockchip64 edge to 6.0.y (#4337)
* Bump rockchip64 edge to 6.0.y

Build test passing

* Update kernel config, enable aufs, disable broken wireless, remove deprecated patch
2022-10-25 11:26:51 +02:00
Igor Pečovnik
df7a603553
Resolv check was done for host while it should be done for chroot (#4325) 2022-10-24 09:09:12 +02:00
Igor Pečovnik
5d7744c880
Add Ubuntu 22.10 Kinetic (#4326)
* Add Ubuntu Kinetic
* Remove missing package
* Keep only working desktops in kinetic
* Optimisation
* Cleanup
2022-10-24 09:07:51 +02:00
Igor Pečovnik
21b8626e4c
Disable hostapd service as it might not always be configured (#4327) 2022-10-24 09:05:23 +02:00
Igor Pečovnik
4ca346d82c
Replace Ubuntu PRO advertisement (#4303) 2022-10-22 17:35:25 +02:00
The-going
d58c839c04
fix: chroot buid: Selecting value "user-built" for proper operation (#4280)
The else condition will never be met.
The chroot_build_packages function collects all packages everything
for all operating systems and the user is drowning in the amount
of code being executed.
2022-10-22 17:32:47 +02:00
hzyitc
ee38fedbc7
Let mkfs.ext4 decide inode number (#4301) 2022-10-18 20:46:30 +02:00
hzyitc
cc87567334
Reenable Github API to fetch rootfs-cache version (#4295) 2022-10-17 18:15:35 +02:00
Oleg
bf985575b7
fix remove boot-scr to SRC_EXTLINUX=yes (#4298) 2022-10-17 18:11:38 +02:00
hzyitc
cec9cf4d55
Remove machine-id (#4288) 2022-10-15 10:45:09 +02:00
hzy
163fd54290 Rename for typo 2022-10-12 11:20:33 +02:00
hzy
a2c86a2706 Split /lib/functions/cli/cli-entrypoint.sh from /compile.sh 2022-10-12 11:20:33 +02:00
hzy
19fa4d2391 Split /lib/functions/cli/utils-cli.sh from /compile.sh 2022-10-12 11:20:33 +02:00
hzy
91412214e4 Split interactive_desktop_main_configuration from /lib/main.sh 2022-10-12 11:20:33 +02:00
hzy
0c72faf421 Split out functions from /lib/main.sh 2022-10-12 11:20:33 +02:00
hzy
58051b04b7 Split interactive_config_ask_* from /lib/main.sh 2022-10-12 11:20:33 +02:00
hzy
e8ab9e73d0 Wrap /lib/fel-load.sh as function 2022-10-12 11:20:33 +02:00
hzy
a4a4cc385f Wrap /lib/configuration.sh as function 2022-10-12 11:20:33 +02:00
hzy
da15acb0c3 Split interactive_desktop_main_configuration from /lib/configuration.sh 2022-10-12 11:20:33 +02:00
hzy
cda53306a6 Split out functions from /lib/configuration.sh 2022-10-12 11:20:33 +02:00
Ricardo Pardini
85c8cbf15d run shellfmt on all of lib 2022-10-08 14:37:22 +02:00
hzy
ca106aac33 Split /lib/compilation-prepare.sh 2022-10-08 14:37:21 +02:00
hzy
56971b1530 Split /lib/chroot-buildpackages.sh 2022-10-08 14:37:21 +02:00
hzy
7761049c65 Split /lib/makeboarddeb.sh 2022-10-08 14:37:21 +02:00
hzy
445f2ddcb3 Split /lib/compilation.sh 2022-10-08 14:37:21 +02:00
hzy
6d0c97d6ec Split /lib/desktop.sh 2022-10-08 14:37:21 +02:00
hzy
1f65d9d890 Split /lib/distributions.sh 2022-10-08 14:37:21 +02:00
hzy
c46d182159 Split lib/image-helpers.sh 2022-10-08 14:37:21 +02:00
hzy
13eecd8240 Split lib/debootstrap.sh 2022-10-08 14:37:21 +02:00
hzy
d4c8dff4f0 Split lib/general.sh 2022-10-08 14:37:21 +02:00