Commit Graph

150 Commits

Author SHA1 Message Date
Vyacheslav
fd3e89ff9e
JetHome: add bullseye stable current and beta edge build targets (#3408) 2022-01-17 18:08:06 +01:00
Igor Pečovnik
1035905760
Enable generic build targets? (#3381)
* Enable generic build targets

All those targets are WIP, but not having a dedicated maintainer yet. It would probably be good to make images + download pages showing WIP status, asking for maintainers to show up?

* Move targets to nightly

* don't make images

* Add / replace Mate
2022-01-09 10:06:57 +01:00
Werner
9d8a424c03
Cleanup. Remove deprecated build targets (#3148)
* Update targets.conf

* Update targets-desktop-beta.conf

* Update targets-cli-beta.conf

* Update targets.conf

Update targets according ot current status of maintainer list
reduce userspaces to Focal
reduce to xfce default desktop
keep one minimal and one edge to check if they build at least.

* adjust support status according current maintainer sheet

* Readd pbp

* Readd pbp

* Readd C2

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-01-05 17:55:42 +01:00
Ricardo Pardini
90e0fe0ba2
extensions framework + UEFI aarch64/x86 + rpi4b + core changes/fixes (#3300)
* extensions framework (née "fragments")

- this should actually change nothing at this point, just add capabilities
- the framework is implemented in lib/extensions.sh
- the "if function x exists then call x" replaced with call_extension_method()
  - +inline documentation
  - +compatibility names

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; meta-extensions: auto-docs and sample extension gen

- 2 extensions dealing with extensibility itself
  - detect-unused-extensions: shows which extensions are enabled, but never called.
  - gen-sample-extension-docs: generates a sample empty extension & Markdown documentation for extensions

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* new extension methods and features via config variables in core Armbian

- `SKIP_EXTERNAL_TOOLCHAINS=yes` - does not download or use any linaro toolchains, only build host-installed ones
- `SKIP_BOOTSPLASH=yes` - does not patch kernel for splash file
- `EXTRA_BSP_NAME=xyz` - allows for BSP variants, useful for when extensions modify the BSP
- `EXTRA_ROOTFS_MIB_SIZE=x` - add x mib's to rootfs size, for use with very small images
- `KERNEL_EXTRA_TARGETS` - what extra targets to make kernel for, default to "modules dtbs"
- `BOOTCONFIG=none` - does not build nor install u-boot; also doesn't handle bootscripts et al
- `unset KERNELSOURCE` - does not build nor install kernel, nor build initrd, nor build nor install firmware
- `ARMHF_ARCH=skip` - does not add armhf to apt/dpkg, thus pure arm64
- `SKIP_ARMBIAN_REPO=yes` - results in armbian.list.disabled in the final image
- define `APT_EXTRA_DIST_PARAMS` with apt-cacher-ng options and use it for `PACKAGE_LIST_INSTALL/REMOVE` et al
- initial support for targeting x86/amd64 UEFI and BIOS
    - some do's/don'ts for x86/amd64, like a different `UBUNTU_MIRROR` default
    - GPT/EFI(ESP) partitions (fat, `UEFISIZE=256` to enable, mount `UEFI_MOUNT_POINT=/boot/efi`, first on disk but ends
      up at `$uefipart`=15)
    - GPT/BIOS partitions (fat, `BIOSSIZE=1` to enable, second on disk but ends up at partition 14)
    - `UEFI_FS_LABEL="armbiefi"` - to set the FAT label for the EFI partition, visible in Win/Mac
    - hard-requires gdisk package host-side
- add add_host_dependencies() extension method; fill `EXTRA_BUILD_DEPS="pkg pkg2"` to install to host before toolchains
  download
- add pre_prepare_partitions() extension method, for custom partition size calculations
- add create_partition_table() extension method, used to do full-custom partitioning if `USE_HOOK_FOR_PARTITION=yes`
- add post_create_partitions() extension method, mostly for easy debugging
- add post_write_sdcard() extension method, where you can also set `SKIP_VERIFY=yes` to skip sdcard verification
- add post_install_kernel_debs() extension method.
- multiple fixes to bsp to avoid spurious errors when files are not where it expects
- v4: detect `update-initramfs` failure and abort build with useful message if it does
- v4: show useful stacktrace in `exit_with_error`
  - if `ERROR_DEBUG_SHELL=yes`, drop into a shell before unmounting/deleting everything, so we can inspect what went wrong
- v4: display a message before `apt-get remove PACKAGE_LIST_BOARD_REMOVE` packages, so any errors while removing are easy to understand
- v4: preserve kernel .config's dates when copying

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; refactor tool fetching/building into extensions

- a few examples of core refactoring using extensions
- sunxi-tools extension, enabled by 2 different sunxi family includes ("reuse" example)
- marvel-tools extension, enabled by 2 different mvebu family includes
- rkbin-tools extension, enabled by rockship64_common family include
- amlogic-fip/c2-blobs stuff refactored directly into meson64_common.inc ("single-use" example)
- removed the 'testings' fetch_from_repo completely since not used anywhere.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip's for UEFI arm64 and UEFI/BIOS x86 via new GRUB extension

- v3: added `growroot`-awareness to `armbian-resize-filesystem`
    - the partition-growing part of `armbian-resize-filesystem` does not deal correctly with the UEFI layout
    - `growroot` is installed on UEFI images by default, that handles growing partition during initramfs
    - now `armbian-resize-filesystem` handles `resize2fs` only, and works.
- v4: reworked UEFI board/family/include structure:
    - use Distro's `linux-generic` kernel only for `current`
    - `edge` now builds it's own pure-mainline `5.15.y` kernel, for both x86 and arm64
        - `.config` taken from Ubuntu, probably needs tuning for EXTRAWIFI=yes et al
- v4: introduce `SKIP_KERNEL_SYMLINK=yes`, tested in `builddeb`
    - to avoid symlinking kernel; u-boot likes it, but grub and flash-kernel hates it
- v5: many fixes
- v7: more small fixes.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip for the RaspberryPi 4B via new flash-kernel extension

- this does not build it's own kernel "yet", but uses default linux-raspi kernel from Ubuntu
- flash-kernel is not really a bootloader
    - it just prepares kernel et al a FAT partition for booting by the RPi4b bootloader
    - flash-kernel is standard Debian package, but has only been tested on Ubuntu releases
- it is really only known-working since Hirsute release.
  - Debian's rpi kernel is armhf only, so out of scope here, at least until we add source-built kernels.
- v3: fixed focal rootfs build. untested.
- v3: better variable names, preparing for source-built kernel.
- v5: new edge build with pure mainline kernel.
- v6: many fixes and some hacks for packaging and layout, also firmware (using Ubuntu's)

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Added first patch to edge x86 related to wifi drivers

* extensions: leave hostapd alone; remove hackish ext; block reentrancy

- package-list-utils does not belong in this PR
- grub or bcm2711 is not the place to remove hostapd
- block recursive enable_extension() calls, for now.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* gen-sample-extension-docs: fix: avoid counter in generated sample

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: dependencies: enable_extension() in extensions with a stack

- and better stacktraces, I hope

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Remove code from package list since we don't have it in repository
Adjust kernel config to disable driver that needs further polishing.

* Allow amd64 to build the same desktops as aarch64. We only have this limit for armhf, where some desktops don't work

* amd64: allow building amd64 on aarch64 with system toolchain

- conditionally add gcc-x86-64-linux-gnu to hostdeps

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* add libelf-dev directly to hostdeps (and Dockerfile), remove extension

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: remove SKIP_KERNEL_SYMLINK hack, fix the root cause

- which was the missing $image_name for non-arm64 & non-arm, so: x86 for example

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* flash-kernel: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: add host_dependencies_ready() hook

- this passes FINAL_HOST_DEPS containing all hostdeps for the run after they're installed

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add verification functions for correct selection.

* If UEFI Skip symlink creation

* Do not create dtb package for amd64

* Skip scripts folder cleaning if build process native.

Skip creating  postinst prerm scripts  for headers.

* Skip applying headers-debian-byteshift.patch if build native

* Fix architecture syntax as x86_64

* Revert "amd64: allow building amd64 on aarch64 with system toolchain"

This reverts commit 0c5ee20bb1.

* Compare architectures before starting compilation.



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

* extensions: cleanups after fixes by the-Going

- packaging:
  - there is _no need_ anymore for the symlink hack, CONFIG_EFI or no. But check is great, see below
  - it's not `amd64` that has no DTB's, it's all UEFI, thus: `is_enabled CONFIG_EFI`, thanks!
- Explicitly disallow "reverse cross compile" in amd64.conf.
- whitespace-only-deletions: revert. we shall shellfmt the whole thing one day, but not today.
- fix a few syntax warnings in newly introduced code (floating `$ARCH` vs `"${ARCH}`) - blame shellcheck

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: fix: turns out a lot of boards have CONFIG_EFI=y, can't use that for dtb/no-dtb decision.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: remove debug

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* firmware: allow installing `armbian-firmware-full`; make it really full

- can now use `BOARD_FIRMWARE_INSTALL="-full"` to install full firmware for the board. enable for UEFI.
- don't rely on KERNELSOURCE for firmware-related decisions. introduce `INSTALL_ARMBIAN_FIRMWARE` which defaults to `yes`
- rpi4b/flash-kernel: disable Armbian firmware; we need linux-firmware-raspi2, which conflicts.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: log to /${LOG_SUBPATH}/ instead of fixed /debug/

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: introduce cleanup_extension_manager() called by build-all-ng's unset_all()

- to reset/unset everything done by the the initializer, so build can run again

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: remove 'global' logging, for use with build_all_ng

- enable_extensions() will have to live on without logging to file. it's just too early.
- now init EXTENSION_MANAGER_TMP_DIR in initialize_extension_manager()
- now init EXTENSION_MANAGER_LOG_FILE in initialize_extension_manager()

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: build-all-ng.sh bugfix due to extension's debug to stdout

- extensions (among other things) can produce output to stdout when activated
- fix: check_hash() produced "idential" (sic, now changed to IDENTICAL) to stdout as a trigger
- debugging output got mixed with "idential", rendering hash cache void for families that used extensions
  - eg: sunxi, others
- fix is to send stdout to the bitbucket when sourcing the board & arch config files
- proper fix would be stop using stdout in this case and use return code for check_hash()
  - one day soon

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add CI build targets

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
Co-authored-by: The-going <48602507+The-going@users.noreply.github.com>
2021-12-06 09:49:49 +01:00
Igor Pečovnik
12d9198ed3
Push EDGE build targets to Ubuntu Jammy (#3283) 2021-11-22 10:16:08 +01:00
Igor Pecovnik
fde4f56dbc
Broken build configuration caused CI actions into empty u-boot build
U-boot (:)
Process completed with exit code 255.
2021-11-17 20:49:39 +01:00
Igor Pečovnik
c666d285b4
Adjust build targets (#3262)
* Enable Jammy nigly builds

* Add Jethub H1 and D1 to stable
2021-11-16 19:51:40 +01:00
Igor Pecovnik
c274f40834
Adjust build targets 2021-11-14 22:13:42 +01:00
Igor Pecovnik
e4f36d00fd
Temporally disable Helios64 from CI due to broken bootloader 2021-11-12 20:36:06 +01:00
Igor Pecovnik
1c75b8fb91
Fix broken u-boot compilation on Rockpi S
- moving to CSC since we have no dedicated maintainer
- disabling build targets
2021-11-12 07:22:10 +01:00
Igor Pecovnik
6ad23ff7c8
Bugfix - remove non-existing build combinations 2021-09-28 21:39:04 +02:00
Ruikai (Rick) Liu
687c363918
Add NanoPi R2C support (#3138)
* Add NanoPi R2C support
* Bring NanoPi R2C, R2S to edge
2021-09-15 22:20:35 +02:00
Igor Pečovnik
98e302ae7d
Updating targets (#3135) 2021-09-09 23:18:13 +02:00
Igor Pečovnik
466c11abfd
Enable minimal Focal CLI images for all targets (#3129) 2021-09-09 23:01:22 +02:00
Igor Pečovnik
abbe87a450
Add Radxa Zero initial support (#3128)
* Add support for Radxa Zero

u-boot: new patch based on v2021.04
kernel: use patches sent to kernel list by chewitt

Tested with minimal build and cinnamon desktop:
- SD/eMMC, ok
- USB3, works in USB 2 mode
- HDMI, ok
- WiFi/BT, ok

Signed-off-by: Jack Ma <jack@radxa.com>

* Add build targets

* Cleanup and set min speed to 666000

* Change to WIP target

Support status undetermined

Co-authored-by: Jack Ma <jack@radxa.com>
2021-09-08 17:50:05 +02:00
Igor Pečovnik
25bf4a0ef4
Enable Debian Buster target (#3123)
Useful for people that thinks running OMV on their HCx variant
2021-09-04 00:08:10 +02:00
Igor Pečovnik
030ba81843
Disable 3D for Meson SM1 / G12 due to uncomplete support (#3107) 2021-08-23 19:30:12 +02:00
Igor Pečovnik
f61f560510
Promote Bullseye to "supported" (#3102)
* Promote Bullseye to "supported"
* Enable Bullseye stable CLI targets
2021-08-21 21:29:12 +02:00
Igor Pečovnik
ae5ec3145c
Enable 3D on remaining desktop builds and other desktop tweaks (#3104)
* Adjust build targets

* Adjust spaces and enable 3d on remaining target

* Remove scrcpy and tracker-extract in non gnome based desktops
2021-08-21 11:17:00 +02:00
Igor Pečovnik
d54b2d6a84
Adding OPi Zero2 legacy kernel support (#2620)
* Adding OPi Zero2 legacy kernel support
2021-08-12 19:19:18 +02:00
Igor Pecovnik
d0ad4f783d Preapare Khadas Vim3 build target list 2021-08-05 22:37:30 +02:00
Igor Pecovnik
c2929852d1 Target configuration bugfix - removing 3dsupport from Buster desktop build 2021-07-29 13:34:06 +02:00
Igor Pečovnik
8d64acfd21
Fix targets (#3050)
* Fix targets
* Cleaning the list
2021-07-23 10:55:24 +02:00
Igor Pečovnik
23c42e3443
Another round of adjusting targets (#3029)
* Another round of adjusting targets

* Remove 32bit cinnamon target
2021-07-21 19:16:44 +02:00
Igor Pecovnik
5f104a1091 Bugfix / typo - fixing wrong name in build config 2021-07-17 21:50:57 +02:00
Igor Pecovnik
abe6d2e8fb Bugfix / typo - fixing wrong name in build config 2021-07-17 21:48:43 +02:00
Igor Pecovnik
3489e27a16 Bugfix - for creating u-boot packages we need to have board targets defined in main targets.conf
Adding Tinkerboard2 (without creating images) and Vim3l (with creating images)
2021-07-17 21:17:22 +02:00
Igor Pecovnik
e983a827b7 Fixing typo in build targets names 2021-07-17 18:48:10 +02:00
Igor Pečovnik
18e7bef68e
Adjust build targets (#3002)
* Adjust build targets

* Update targets

* Update build images

- enabling 3d
- adding budgie

* Remove unneded targets

* Update CLI targets

* Spaces
2021-07-17 18:05:31 +02:00
Oleg
041c24a8a7
edit image jetson-nano (#3012) 2021-07-16 11:26:34 +02:00
lanefu
8c09e1fa93
khadas support (#2903)
* cleanup add vim3l

* Add Khadas edge config

* Add Khadas edge sources definitions. It boots

* Change configuration to maximised model

* Adjust build configs

* witch to case statement for meson x11 config

* push vim1 naming

* Booting VIM2 with khadas prebuild u-boot

Can load from an empty eMMC, can be installed to eMMC via nand-sata-install

* Add Vim1 and move 1 and 2 to supported. VIM1 is not tested yet.

* Enable full featured desktop with 3D for khadas vim 1 and vim2

* Update meson64_common.inc

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-07-05 21:05:43 +02:00
Igor Pecovnik
692717102b Revert "Jetson legacy kernel building have issues on Hirsute. Disabling it for now."
This reverts commit 13e3c34523.
2021-06-30 13:55:37 +02:00
Richard Neese
1d30c7bada
change desktops down to 3 budgie/cinnamon/xfce for now . (#2929)
* change  desktops down to 3 budgie/cinnamon/xfce for now .

* Additional clenaup

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-06-28 20:38:09 +02:00
Oleg
d654b231e2
add image Buster current for P1\M1 (#2927) 2021-06-26 23:29:32 +02:00
Werner
f3dd19f890
Bump Zero2 (H616) (#2907)
* Update sun50iw6.conf

* Extract patches from private kernel branch, remove 5.10, cleanup

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-06-20 10:05:49 +02:00
Igor Pecovnik
43a38bae9e Enable Rockpi N10 css build targets 2021-06-18 09:10:28 +02:00
Igor Pecovnik
13e3c34523 Jetson legacy kernel building have issues on Hirsute. Disabling it for now. 2021-06-16 08:30:46 +02:00
Igor Pečovnik
d3d4f050e4
Add ZRAM to Jetson Nano legacy (#2899)
* Add ZRAM and few other networking related options to Jetson nano legacy kernel config

* Enable legacy desktop build for jetson-nano

* Enable nightly legacy kernel build

* space
2021-06-16 00:56:56 +02:00
Igor Pecovnik
7d9a5f7eb4 Clenup build targets 2021-06-13 18:15:23 +02:00
Igor Pecovnik
63b7369d15 Typo in branch declaration 2021-06-10 13:05:37 +02:00
Igor Pečovnik
17b3da0a44
Fix mainline kernel boot on Rockpi S (#2823)
https://armbian.atlassian.net/browse/AR-785
2021-06-10 11:58:00 +02:00
Igor Pečovnik
4a00f9eb0d
Update targets.conf 2021-06-09 17:57:09 +02:00
Igor Pečovnik
cd6af68ceb
Quick fixes for CI (#2888)
* Fixes
* Remove not needed target
* cleanup
2021-06-09 17:53:05 +02:00
Igor Pecovnik
5007047afd Adding virtual Qemu to stable targets so kernels are build in nightly sessions 2021-06-05 09:14:16 +02:00
Igor Pečovnik
b65d1caecb
Adjust build targets (#2838)
* Adjust beta targets

* Add edge hirsute targets

* More adjusting
2021-05-23 00:07:27 +02:00
Igor Pečovnik
570bf71c5c
Stop building C1 images
U-boot doesn't build anymore ...
2021-04-19 19:23:23 +02:00
Igor Pecovnik
dd12df4cac Add Orangepi R1+ to the build targets 2021-04-15 14:19:01 +00:00
Igor Pecovnik
b22f140784 Adjust build targets to be able to build two additionl kernels imx/jetson edge 2021-04-13 00:08:06 +02:00
Igor Pecovnik
c1ef2aeba9 Adjust two build targets still pointing to deprecated DEV branch 2021-03-24 21:16:59 +01: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