Commit Graph

174 Commits

Author SHA1 Message Date
Igor Pečovnik
39f4944952
Adjust build targets (#3615)
- radxa zero2 edge branch does not exists
- radxa zero no stable build targets
- debian sid builds are broken upstream, removing them
- reduce build count - we are focused to hw functions
2022-03-31 21:41:13 +02:00
Igor Pečovnik
c39bc5fcf8
Add rockpro64 build targets since we have a maintainer (#3562) 2022-03-24 20:53:57 +01:00
Igor Pecovnik
34d4be6b7b
Bugfix - wwitching one build target with another. 2022-03-08 07:55:39 +01:00
Igor Pecovnik
b4dfaaf286
Update build targets 2022-03-06 20:34:20 +01:00
Igor Pecovnik
6b62f6923f
Enable missing build targets
https://github.com/armbian/build/pull/3526
2022-03-06 10:37:51 +01:00
Igor Pecovnik
1a0395f849
Enable OPi R1 Plus LTS build targets
We got a mainter
2022-02-26 18:00:01 +01:00
Heiko Jehmlich
1e287da371
reenable nanopineoplus2 (#3504)
* reenable nanopineoplus2
* Update targets.conf

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2022-02-25 19:26:16 +01:00
Igor Pečovnik
ef7eb1aaaf
Adjusting build targets (#3488)
* Enable Pinebook nightly and UEFI stable
* Remove Pinebook pro from nightly, we have RC images
* Optimising targets
2022-02-14 19:07:59 +01:00
Igor Pečovnik
4c57347221
Update build targets (#3484)
* Update build targets

Change some beta build targats to sid

* Adjust another few

* Update
2022-02-13 20:28:32 +01:00
Igor Pečovnik
a4ae3a2270
Update targets (#3482) 2022-02-12 23:14:44 +01:00
Oleg
05d849cf59
fix target nanopc t4 (#3473) 2022-02-11 08:11:12 +01:00
Igor Pečovnik
c318d6fc79
Update build targets (#3456) 2022-02-10 15:16:30 +01:00
Oleg
daa0e70004
add image adv (#3467) 2022-02-10 15:02:50 +01:00
Oleg
1001751983
add image Firefly-rk3399 (#3441) 2022-01-26 16:25:24 +01:00
Igor Pečovnik
3d9bf9a15f
Remove Hirsute from build targets (#3440) 2022-01-26 13:04:05 +01:00
Vyacheslav
1b817e2869
JetHome: advertise recommended targets at download pages (#3438) 2022-01-26 13:02:25 +01:00
Oleg
84dfc3c638
edit list image Station M1\P1 (#3435) 2022-01-25 23:26:44 +01:00
Igor Pečovnik
fd47b867d4
Update download recommendations (#3432) 2022-01-24 16:32:45 +01:00
Oleg
1411efaa10
add image for Station P2 (#3430) 2022-01-24 16:27:41 +01:00
Igor Pecovnik
c51bc31754
Fix typo and change build targets recommendation status
This exposes build targets.
2022-01-24 10:27:20 +01:00
Oleg
7489dc2fc1
new set of images Jentosn Nano (#3428) 2022-01-24 09:58:56 +01:00
Oleg
c7f3c239fe
add image for station m2 (#3429) 2022-01-24 09:56:31 +01:00
Igor Pecovnik
037a7d54e1
Typo 2022-01-22 23:01:08 +01:00
Igor Pečovnik
fdcd671fba
Update build targets (#3424)
Re-adding C4 since we have a maintainer, enable a few of recommended targets for another test
2022-01-22 19:29:24 +01:00
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