Commit Graph

1223 Commits

Author SHA1 Message Date
Igor Pečovnik
2cd1131f72
Bump rootfs cache revision to force recreation (#3576)
We have buggy caches due to varios bugs that has been around but were fixed this week
2022-03-26 14:21:07 +01:00
Igor Pečovnik
eaa10a19de
Fixing deprecation notice for our primary key (#3553)
Leave old method for older variants
2022-03-26 12:40:42 +01:00
Igor Pečovnik
c96a9096c5
Bugfixes and improvements for https://github.com/armbian/build/pull/3560 (#3571)
Testet XFCE desktop builds on Focal, Jammy, Impish x86
2022-03-25 21:05:16 +01:00
Oleg
03ef96715e
fix emmc nano-pc-t4 (#3557)
* fix emmc nano-pc-t4
* fix node and del not used patch
2022-03-25 20:51:03 +01:00
Igor Pečovnik
1bb5ad98ab
Refactor all PPA sources to overcome apt-key deprecation (#3560) 2022-03-25 15:09:07 +01:00
brenkem
f3f12248e1
enable support for LINUX Mint 20.3 (#3541) 2022-03-19 16:48:02 +01:00
Igor Pečovnik
e6c7b84c02
Bringing wireless driver support to 5.15.y + (#3538) 2022-03-16 17:53:33 +01:00
Peter Young
11f1223ce2
Fix url slash & china mirror (#3525) 2022-03-09 09:24:27 +01:00
Igor Pecovnik
8ac58b806c
Change MAKE_FOLDERS into accepting any value for subfolder
Internal function
2022-02-27 21:49:03 +01:00
Igor Pecovnik
92a1c729d4 Fix image build status and remove build-all scenario 2022-02-27 11:48:59 +01:00
Igor Pečovnik
c859d0c831
Fixing package name changes in Jammy (#3512)
* Detach  Jammy from focal due to package changes

Fix font package name

* Resolve broken packages for Jammy / i3 / gnome / xmonad

printer-gnome is also obsolete

* Bump rootfs cache number
2022-02-25 19:26:45 +01:00
Igor Pečovnik
c1ccfe11b0
Adjust bootsplash patches for 5.15.y / 5.15.y (#3501) 2022-02-17 22:05:08 +01:00
Igor Pečovnik
2638284b3b
Enable AUFS and Docker (#3502)
* Enable AUFS and Docker

* Add AUFS to configs

* Update configs
2022-02-17 22:04:55 +01:00
iav
3cb8dc709b
remove wrong assumpsion "btrfs compressed fs always < current size" (#3485) 2022-02-14 19:06:22 +01:00
The-going
d3ff3de734
Function (#3476)
* Rename "git" to "improved_git" if the command accesses a remote server
* Rename by meaning
* fetch_from_repo: Remove dependency for related functions.
* waiter_local_git: Add an option for the whole family
if present in the configuration
* Correct the comment
* Fix rename git to improved_git
2022-02-13 20:13:51 +01:00
KevinZønda
3236e5299b
upd mirror site (#3483) 2022-02-13 17:42:27 +01:00
Igor Pečovnik
078b58df01
u-boot install fallback - use version which was downloaded from repo (#3475) 2022-02-12 10:30:07 +01:00
Igor Pečovnik
1e37959e53
Bumping sunxi/64, xu4, rockchip and mvebu64 to 5.16.y (#3453)
* Prepare xu4 edge for 5.16.y, move current of imx6 to 5.15.y and edge to 5.16.y

- fix bootsplash on 5.16.y

* rk322x: advance current to 5.15 and edge to 5.16

* rockchip: advance current kernel to 5.15, edge to 5.16

* - adjust configs
- fix bootsplash patches
- adjust aufs

* Switch sunxi / sunxi64 current to 5.15.y, edge to 5.16.y

- cleanup bootsplash patches
- adjust configs

* Update mvebu64

Co-authored-by: Paolo Sabatino <paolo.sabatino@gmail.com>
2022-02-10 20:32:58 +01:00
Oleg
a3fd209abe
fix extlinux.conf (#3468) 2022-02-10 15:02:09 +01:00
Igor Pečovnik
38e496ccee
Change RC folder caps 2022-02-09 14:20:27 +01:00
iav
4034a8f535
switch RTL8188EU USB WiFi driver with 5.15+ kernel to mainline (#3464)
https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-Staging
2022-02-07 09:52:39 +01:00
The-going
990798c3fb
Patching sunxi 5.15 (#3460)
* Remove an aged patch from use #3443

Allwinner-Add-frame-inversion-to-correct-audio-chann.patch

* Rename and prepare for the series 5.15

* Split and rename files for sun50i-h616-dtsi

* Split and rename files for sunxi overlays

* Remove mutually exclusive patches

* Add fifty redesigned patches to the series

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

* Remove fifty-four old patches

* Fix compile error

* Delete unused ones and sort if possible for megous series

* sunxi-5.15: Sort, fix compile warning, remove unused

* Rework print log for patching
2022-02-05 21:53:26 +01:00
Igor Pecovnik
dc9722b535
During a build display mirror server where kernel sources are comming from 2022-02-03 13:35:57 +01:00
Igor Pečovnik
26cef397c0
Add switch to skip image creation if it already exists (#3454)
* Move artefact creation directory into from deboostrap into configuration

This is needed to support function of early checking for artefacts. Useful for CI

* Introduce IMAGE_PRESENT parameter which we can use when creating a lot of images so we don't need to recreate whole CI if one image fails
2022-02-02 20:54:42 +01:00
csrbzhb
367280b10d
fix github mirror.china github speed up (#3451) 2022-02-02 10:55:01 +01:00
Oleg
e7267c3fee
new module list generation function for Initramfs (#3447)
* new module list generation function for Initramfs

* fix

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2022-02-02 10:50:50 +01:00
Oleg
365c5b6e4a
fix start Jetson Nano kernel legacy USB media (#3452) 2022-02-02 10:49:20 +01:00
Igor Pecovnik
21a4908f15
Force cache rebuild 2022-02-01 12:46:09 +01:00
Igor Pečovnik
d4ee87852c
Add option to override default ubuntu arhive (#3446) 2022-01-30 23:10:51 +01:00
The-going
d885bfc97d
Patching sunxi (#3445)
* waiter_local_repo: Fixed incomplete logic

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

* A series of patches for sunxi v5.15.16

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

* DEBUG

* check 70

* check 101

* Add 101 Armbian patches as series

Patches are renamed using the logic of the file structure
and the essence of the changes, sorted in the order
of their receipt. Fixed a lot of incorrect overlay
of some pieces in patches. Several small patches are
combined, because they changed one file.

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

* Remove old patches that have been reworked into a series

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

* Fix for apply to v5.15.17

* Two Bluetooth-BTRTL patches for sunxi will be applied in the series.

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

* check 113

* Fix print output

* Revert "DEBUG"

This reverts commit 49e2c7fdc0.
2022-01-28 19:08:04 +01:00
Igor Pečovnik
72e8fc7d36
Improve cache creation process by removing /root and /home to be syched (#3439) 2022-01-26 12:48:13 +01:00
Igor Pecovnik
e7962bb2b5
Bugfix - cleaning package list
Prevent problems with "File has unexpected size" when we hit repo synch between builds
2022-01-23 11:15:18 +01:00
Oleg
e4c3b9916c
fix bootsplash and move set PKG_PREFIX to arm64.conf (#3410) 2022-01-22 19:49:06 +01:00
Igor Pečovnik
1b18df3c83
Remove deprecated library from Dockerfile (#3420)
* Update Dockerfile
* Remove zlib1g:i386 from general.sh as well
2022-01-22 06:04:41 +01:00
Igor Pečovnik
af7bbccf06
Bump with cache rootfs version to force reload (#3417)
Mitigating debootstrap bug.
2022-01-20 14:46:21 +01:00
Igor Pečovnik
dc027bf8be
Bugfix - remove refference to aptly repostiry since it went offline (#3416)
Ubuntu from 21.10 packs the same version.
2022-01-20 14:44:27 +01:00
The-going
8331e8b9dc
Add initial series patches for sunxi-5.16 (#3392)
* Add initial series patches for sunxi-5.16

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

* Now all patches are applied to the v5.16 kernel without errors

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

* Handle an exception if the initial tag is the top of the branch.

Remove the handling of the old exception.

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

* sunxi64_common.inc: Fix for 5.16

* sunxi-common.inc: Fix for 5.16

* Revert debug for EDGE: KERNEL_VERSION_LEVEL to "5.15"

* Add new patches from megous and switch to v5.16.1

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

* waiter_local_repo: Fixed comment

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-01-17 14:19:53 +01:00
The-going
4a5ed695a7
Bugfix. Create a directory for the build environment cache (#3404) 2022-01-16 14:52:23 +01:00
The-going
e4e4ab0791 install_pkg_deb: Fix the logic of selecting updates
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-01-13 11:33:35 +03:00
Igor Pečovnik
0344d20c15
Support for multi source download when using https protocol (#3306)
* Bugfix - toolchain download only from a single source

* - replaced hardcoded continent value with dynamic
- set https download as default since its downloading from multiple closest servers by default
2022-01-12 07:49:58 +01:00
Vyacheslav
1e1018eeac
Fix install basic packages without sudo (#3393) 2022-01-11 11:36:25 +01:00
Vyacheslav
5bfa587727
Fix branch for linux-firmware from master to main (#3390) 2022-01-10 15:44:23 +01:00
The-going
3083038855
install_pkg_deb: Not updated every time the function is called. (#3385) 2022-01-08 09:59:06 +01:00
Igor Pečovnik
310495ddf1
Refactor armbian-bsp-cli package creation (#3378)
* Refactor armbian-bsp-cli package creation

- added general distro status for all in separate file inside BSP
- remove branch and distro specifics

* Looking for prebuild pack

* Small fixes
2022-01-06 11:50:24 +01:00
The-going
028256735d
prepare_host: Installing packages with the install_pkg_deb function (#3374)
* separate joint and own lists for architecture

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

* Remove duplicate selection

* Final add Installing build dependencies

* libncurses: Do not use transitional package

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

* add arch i386: Remove duplicate selection

* lib32ncurses-dev: Dependency only for amd64

* install_pkg_deb: parameter verbose to log
2022-01-05 17:55:22 +01:00
Igor Pečovnik
e76a5b0bfe
Improve fist login UX (#3375)
* Improve 1st login script

* Update packages/bsp/common/usr/lib/armbian/armbian-firstlogin

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Address accessibility issue

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2022-01-05 17:55:10 +01:00
The-going
fedc9c1f58
Install debian packages using a special function (#3368)
* Add new function install_pkg_deb

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

* Use the install_pkg_deb function

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

* sunxi-tools: Calculate build dependencies

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

* hostapd, hostapd-realtek: Calculate build dependencies

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

* Clean Environment for building as default

* upgrading: Repack a clean Environment archive

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-12-27 14:23:35 -05:00
catalinii
f6143eff67
Fix the uboot for rock-3a (#3271)
* Sync kernel config with radxa and remove packaging patch

* Merge the rockchip64 legacy config as well

* Lower priority of EFI partitioning against DOS partitioning which is used by Armbian

Co-authored-by: Catalin Toda <catalinii@yahoo.com>
2021-12-25 11:57:26 -05:00
Igor Pečovnik
e70ab625ec
Add support for missing REPOSITORY_INSTALL variants (#3360) 2021-12-19 21:11:39 +01:00
Igor Pecovnik
e11af914a2
Introducing new internal function for deploying images in folders
This was previously done automatically with BUILD_ALL but since we are building images differently, we need a new name. BUILD_ALL covers other functions, so we need to detach and make a new VARIABLE.
2021-12-15 18:30:23 +01:00
lededev
1e08570817
Add warning when build environment is WSL2 docker (#3341)
* Add warning when build environment is WSL2 docker

* change warning message for WSL2 Docker

Co-authored-by: lededev <lededev@noreplay.github.com>
2021-12-14 00:13:51 +01:00
Igor Pecovnik
40e5a57a41
Let's not unset environment variables within the script 2021-12-12 19:14:54 +01:00
Igor Pečovnik
06c931c9c2
Add support for rootfs / toolchain bind (u)mount (#3342)
* Add support for rootfs / toolchain bind (u)mount

* Bugfixes
2021-12-12 17:41:03 +01:00
Igor Pečovnik
2e5d928057
Refactoring host preparation function to address a bug (#3340) 2021-12-11 21:16:12 +01:00
The-going
146803353c
Remove the garbage from the install.log file (#3333)
* Remove the garbage from the `install.log` file

You cannot use `--info=progress2` for the `rsync`
command when all output is sent to a file.
This creates a large garbage file.

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

* Changes megous reverse commit. Just disable the patch

commit bd592ec43b76b298be29126e667850113b84376d (tag: orange-pi-5.15-20211125-1352)
Author: Ondrej Jirman <megous@megous.com>
Date:   Thu Nov 25 13:51:59 2021 +0100

    Revert "rtw88: Add more channels"

    This reverts commit cb1e3839822d4f782a9af6c27568540414093ba6.
2021-12-10 08:32:44 +01:00
RadxaYuntian
fe9c032aac
Add new options to handle mirror selection better (#3325)
* Add new option UBOOT_MIRROR to select mainline U-Boot mirror

 - set to `github` to use mirror provided by GitHub, the same as `USE_GITHUB_UBOOT_MIRROR=yes`.
 - set to `gitee` to use mirror provided by Gitee, a Chinese git service.
 - leave it unset to use offical `source.denx.de`.

* Add GITHUB_MIRROR option

Usage similar to UBOOT_MIRROR.

* Add REGIONAL_MIRROR option

Chinese users (the main user of mirror options) can have use this one instead of configure many different options.
2021-12-08 16:15:26 +01:00
Igor Pecovnik
72dba9b907
Backend - add feature for easy edge cleaning from stable repository
We had an issues with some mirrors on exceeding its predicted size for several times. EDGE kernels are updated very often, so we have a lot of packages. Which actually have no point to be stored for a very long time
2021-12-07 21:21:57 +01:00
Igor Pečovnik
450043a212
Mitigate Samba NetBios timeouts (#3328) 2021-12-07 20:13:03 +01:00
Ricardo Pardini
da062debdd
[PR] multiple fixes for the eval + PIPESTATUS construct (#3280)
- try this on your bash shell:
  - `ONEVAR="testing" eval 'bash -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ; echo ${PIPESTATUS[*]}`
  - Notice how PIPESTATUS has only one element. and it is always true, although we failed explicitly with false in the middle of the bash.
  - That is because eval itself is considered a single command, no matter how many pipes you put in there, you'll get a single value, the return code of the LAST pipe.
  - Lets export the value of the pipe inside eval so we know outside what happened:
  - `ONEVAR="testing" eval 'bash -e -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ';EVALPIPE=(${PIPESTATUS[@]})' ; echo ${EVALPIPE[*]}`
- also: pass LC_ALL=C LANG=C to avoid locale warnings

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-12-07 20:10:47 +01:00
eiffel-fl
734c93a955
Add package needed to satisfy CONFIG_DEBUG_INFO_BTF. (#3299)
CONFIG_DEBUG_INFO_BTF relies on libelf-dev and pahole (provided by dwarves
package).
This commit add dwarves package both as hostdeps and to Dockerfile.
2021-12-06 15:57:07 +01:00
Igor Pecovnik
bddce2c432
Two small bug fixes
- disabling samba on desktop builds since it delays 1st login and throws out an error in case we have no network (laptop usage)
- disabling broken build target
2021-12-06 15:55:16 +01:00
Ricardo Pardini
2d418d2561 amd64: fixes for REPOSITORY_INSTALL scenario, don't disable amd64 repo
- now we have proper amd64 repo published!, remove disable
- amd64 does not have dtb package anymore, don't try to install it from repo

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-12-06 12:50:21 +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 Pecovnik
2eae831889
Calculate patches changes only on first level since this fails when including subfolder. Bug in sort. Needs to be reworked once
Also cleanup few patches we don't need.
2021-12-05 16:53:08 +01:00
Igor Pecovnik
9daf120b21
Bugfix - build all - add another kernel build exception 2021-12-05 12:44:05 +01:00
Igor Pecovnik
0e86dc162e
Bugfix on hash making
- include subfolders
- compare .patch files only
2021-12-05 09:01:34 +01:00
Igor Pečovnik
3bf7fc9669
Bugfix - hash calculation depends on locale settings (#3312) 2021-12-04 12:11:07 +01:00
Igor Pečovnik
dde00cf6cf
Add cache integrity checking - used internally when making cache (#3303) 2021-11-30 21:51:04 +01:00
Igor Pecovnik
9e61b3a762
Implementing workaround for correct AUFS sources selection
Closes https://github.com/armbian/build/issues/3297
2021-11-29 11:59:13 +01:00
The-going
ada47377b5
Patches megous current branch to v5.10.82 (#3294)
* Kernel switch tag: v5.10.82
* Rework series megouse for v5.10.82
* Switch new packaging for kernel 5.10 and more
2021-11-28 21:31:24 +01:00
Igor Pecovnik
f0541c3b4b
Add internal switch which allows to skip building certain kernel families even conditions are met.
This helps when we have no time to work on certain branch patches right now, while all others builds without a problem.

We create a file this way:
c0c6fd3a02
2021-11-25 14:39:15 +01:00
Igor Pecovnik
a7da24a2f4
Revert "[PR] multiple fixes for the eval + PIPESTATUS construct (#3280)"
This reverts commit efeb4d19e2.
2021-11-25 12:11:53 +01:00
Igor Pecovnik
38455f7f12
After changing sunxi to the mainline sources we manage to produce a bug
We need to handle an exception
https://github.com/armbian/build/pull/3272
2021-11-24 19:25:24 +01:00
Igor Pecovnik
956e1acabb
Move Docker generation stop hook further into the code to include Toolchains 2021-11-22 21:34:01 +01:00
Ricardo Pardini
efeb4d19e2
[PR] multiple fixes for the eval + PIPESTATUS construct (#3280)
- try this on your bash shell:
  - `ONEVAR="testing" eval 'bash -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ; echo ${PIPESTATUS[*]}`
  - Notice how PIPESTATUS has only one element. and it is always true, although we failed explicitly with false in the middle of the bash.
  - That is because eval itself is considered a single command, no matter how many pipes you put in there, you'll get a single value, the return code of the LAST pipe.
  - Lets export the value of the pipe inside eval so we know outside what happened:
  - `ONEVAR="testing" eval 'bash -e -c "echo value once $ONEVAR && false && echo value twice $ONEVAR"' '| grep value'  '| grep value' ';EVALPIPE=(${PIPESTATUS[@]})' ; echo ${EVALPIPE[*]}`
- also: pass LC_ALL=C LANG=C to avoid locale warnings

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-11-22 11:04:38 +01:00
The-going
864ae626a8
Switch sources for sunxi 5.15 to the mainline kernel source. (#3272)
* Add new function apply_patch_series
* Apply a series of patches if a series.conf file exists
* Add all megous orange-pi-5.15 branch patches as series
* Add an Exception for version 5.15 for sanxi
* Adjust the switch for sunxi
* Fix megous patches series for v5.15.3
* Switch version to 5.15.3 for sunxi
* Check the exception for 5.15 sunxi
2021-11-20 19:48:51 +01:00
Igor Pečovnik
6979718d58
Chroot build packages cleanup and bug fixing (#3266)
* Small fixes and removal of deprecated component
* Fix to properly create armbian repo in chroot
2021-11-17 19:35:32 +01:00
Igor Pečovnik
a1d7dec2db
Possible fix for Opiz2 upgrade breaking
https://forum.armbian.com/topic/19101-orangepi-zero-2-supported-bullseye-cant-update/?do=findComment&comment=130987
2021-11-16 05:53:35 +01:00
Igor Pečovnik
e163aa34fb
Enable Netplan.io (#3248)
* Enable Netplan in Ubuntu Focal

* Add netplan to other variants

* Force rootfs update
2021-11-15 23:34:36 +01:00
Igor Pečovnik
aaa050959b
Replace which with command -v (#3253) 2021-11-15 23:30:39 +01:00
Igor Pečovnik
738975ad56
A day of building and finding troubles in desktop builds (#3259) 2021-11-15 23:30:07 +01:00
Igor Pečovnik
f0ebf400b1
Change hardcoded with dynamic values (#3258) 2021-11-15 18:27:27 +01:00
Igor Pecovnik
abcfa76c9c
Creatge Ubuntu 22.04 repository 2021-11-14 22:18:12 +01:00
Ricardo Pardini
345a18cd90
fix jammy (next Ubuntu LTS) sources.list (#3251)
Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-11-14 09:51:55 +01:00
Prajwal Koirala
67a303a46e
This will fix all of the issues that users are complaining about. (#3246) 2021-11-11 09:21:19 +01:00
Igor Pečovnik
2a47ad5c78
Add support for next Ubuntu LTS (#3234)
* Add support for next Ubuntu LTS

* Update build-cache.yml

* Update build-cache.yml

* Update build-cache.yml

* Update build-cache.yml

* Jammy repository creation

* Enable docker build support on Jammy
2021-11-09 18:15:04 +01:00
Igor Pecovnik
14904824dd
Force rootfs cache rebuild 2021-10-31 16:43:42 +01:00
Igor Pecovnik
e02753ecf9
Backend - optimise images compression method 2021-10-29 16:53:54 +02:00
Igor Pecovnik
f375ba4a3a
Removing deprecated keyserver
Closing https://github.com/armbian/build/issues/3190
2021-10-28 23:06:42 +02:00
The-going
d583c86177
Make a shallow local repository for tracking history (#3172)
* Allocate repository cleanup to a separate function.

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

* Add a waiter function to serve a shallow local git repository.

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

* Configuration shallow repository in sunxi64_common.inc file

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

* Configuration shallow repository in sunxi_common.inc file

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

* An example of using the function of creating a shallow local repository.

This example is a very bad crutch.
It is necessary to come up with another option for permanent use.

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

* Fix variable KERNELSOURCENAME as 'name=megous' for sunxi32

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

* Required variables cannot be empty

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

* Print an action message.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-10-28 18:17:03 +02:00
Igor Pečovnik
315d99896b
Store changelog for upstream changes in the cache/hash/ (#3131)
* Store changelog for upstream changes in the cache/hash/

* Cleanup

* Calculate urls

* Use URL

Don't merge since it doesn't work properly yet

* Check if OLDHASHTARGET commit exists otherwise use oldest

* Fix log updating

* Improve log format, add better support for sunxi
2021-10-28 18:16:43 +02:00
Ricardo Pardini
be5f2b8c75
introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS (#3222)
* introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS

- Avoids zstd which is now default in Ubuntu Impish, but can't be read by Debian dpkg
- Allows for xz, gzip, or none; defaults to xz; use gzip for faster, and none for much faster.

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

* use KDEB_COMPRESS in packages/armbian/builddep for 5.12+ kernels too

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-10-27 18:55:12 +02:00
Piotr Szczepanik
86abac1fd4
Cleanup u-boot configurations for rockchip64 derivatives (#3150)
* Cleanup u-boot configurations for rockchip64 derivatives

* Bring separate BOOT_USE_* variables into BOOT_SCENARIO

* Revert BOOTDIR change in rockchip64

* Bump RK3568 BL31 to v1.35
2021-10-26 22:14:41 +02:00
Ricardo Pardini
bd3609b4d1
fix security repo for bullseye (#3226)
* fix security repo for bullseye

- with bullseye, comes a security repo layout change
- see https://www.debian.org/releases/bullseye/arm64/release-notes/ch-information.en.html#security-archive

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

* debian: fix source lists for bullseye+ and sid; remove previous fix

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-10-26 08:54:48 +02:00
Ricardo Pardini
39c1f5a6a9
avoid getting 'unknown' TERM via serial getty (#3225)
- Escape $TERM, this is meant to be resolved at runtime and not in armbian/build's context
- This was very hard to track down, if building manually $TERM is actually valid (builder's $TERM)
- When building without a tty this shows up as "unknown"

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-10-26 08:51:22 +02:00
Igor Pečovnik
cac33b070e
Unset variable so it doesn't get extended (#3212)
That lead to glued packagelist when build images in a row.

[ o.k. ] Installing the desktop packages for [ Armbian ]
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package remminaanacron
2021-10-20 19:01:34 +02:00
Vyacheslav
07523f5a9e
Add gpio power reset for hci_h5 controllers in h5_btrtl_open (#3208) 2021-10-19 21:02:24 +02:00
Igor Pečovnik
92cc1f43a3
Enble Impish in repository (#3207) 2021-10-19 10:41:48 +02:00
Bohdan
c8a68820d3
Add support for rtl8822cs (hci_ver 0x8) bluetooth (#3201)
Signed-off-by: chbgdn <chbgdn@gmail.com>
2021-10-18 20:36:28 +02:00
Igor Pecovnik
83217ea30c
CI runners support - take more memory from host 2021-10-15 00:12:25 +02:00
Igor Pecovnik
5f947341ba
Bump rootfs cache version number to force rootfs creation
Also add an option to set those two cache parameters from the outside
2021-10-14 21:31:15 +02:00
Igor Pečovnik
84ef3d5289
Extending free memory detection to swap (#3195)
Host machines with 4Gb physical memory are unable to build all images. During workiin on CI improvements it was noticed that runners with just 4Gb of memory are unable to create rootfs cache or make an images even that should be sufficient. Memory reservations are set very conservatively and we can keep that since adding a swap into the equation proves to be enough. If host machine is running Armbian (which will be in most cases) our ZRAM / ZSWAP memory management takes care of securing that extra needed memory.
2021-10-14 00:01:23 +02:00
Igor Pecovnik
fbaeb940ca
Consolidate wireless driver related patch
Fixing troubles in https://github.com/armbian/build/pull/3154
2021-09-26 17:25:52 +02:00
Igor Pečovnik
e8c5d07a89
Switch to matrix jobs scheduler and upload build logs (#3157) 2021-09-26 08:42:24 +02:00
Igor Pečovnik
9653d8c780
Apt cache prompts at fresh install and locales issue (#3158)
* Apt cache prompts at fresh install
* Some Ubuntu variants comes without default locales
2021-09-24 21:10:24 +02:00
Piotr Szczepanik
0069ad60a6
Preliminary support for rockchip rk35xx boards (#3111) 2021-09-15 22:08:39 +02:00
Igor Pecovnik
26af7fe00c
Force rootfs caches rebuild
We have few corrupted caches and almost all desktop caches has to be rebuild due to added packes. It makes sense to refresh it.
2021-09-09 23:21:20 +02:00
Vyacheslav
3ab1bff470
Fix gpg signing when sudo unavailable. (#3100)
Signed-off-by: Vyacheslav Bocharov <devel@lexina.in>
2021-09-02 21:57:41 +02:00
Vyacheslav
c3051b46ff
Add driver for Realtek 8822CS (SDIO) Wi-Fi adapter. (#3101) 2021-08-21 11:04:06 +02:00
Igor Pečovnik
742aea8af2
Re-enable Debian stretch repository (#3087) 2021-08-08 18:58:40 +02:00
Igor Pecovnik
bfd3adaf4a Reverting u-boot package change
This is most likely a mistake since we didn't decide on such change or identify as a bug.

Closing https://github.com/armbian/build/issues/3073
2021-08-08 14:25:16 +02:00
Igor Pecovnik
4bc2dd27b1 Bugfix - disable wireless driver for older kernels and add a few upstream patches for meson64 legacy
Kernel was only tested for building.
2021-08-06 18:27:23 +02:00
Rob Logan
e2fa720f1d
Updated_Upstream_rtl88x2bu (#3083)
* Updated_Upstream_rtl88x2bu

* Updated_Upstream_rtl88x2bu
2021-08-06 08:19:09 +02:00
Igor Pečovnik
d256411e2d
Do compress and sign operation in the temp folder (#3079) 2021-08-04 16:55:35 -04:00
Icenowy Zheng
71a33a8a67
Re-enable 8723ds on 5.14 (#3076)
The lwfinger/rtl8723ds repo is already adapted to 5.14.

Re-enable 8723ds on 5.14.

Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
2021-08-03 18:04:52 +02:00
lanefu
9beffe4b86
set log subpath in build-all (#3067)
* set log subpath in buld-all

* build all log pathing

* Update build-all-ng.sh
2021-07-27 20:03:31 -04:00
lanefu
894cb29ca7
Feature/get_log_path/ (#3064)
* custom log path of debug/ via LOG_SUBPATH=
2021-07-27 07:24:06 -04:00
Igor Pecovnik
02e0deb23d Removing duplicates in packages and bumping with a rootfs cache id 2021-07-27 12:57:33 +02:00
Igor Pecovnik
885a99fe66 Adjust and add upstream patches
- reenable 8723ds on K5.13 and remove deprecated wifi patches
- adjust rockchip audio and vdec patches in 5.13.y as in 5.10.y
2021-07-26 07:54:09 +00:00
Igor Pecovnik
bc19b9beab Change the way how RC images are build
RC images are neither beta neither stable. If we use this parameter, they are put into subdir RC. If they are made from beta or not, we choose with other BETA=yes parameter
2021-07-22 12:34:54 +02:00
Igor Pečovnik
cbcad64f1c
Typo - missing space in IF statement 2021-07-22 08:24:17 +02:00
Igor Pečovnik
e7377248b3
Second part of EDGE bumping to 5.13.y (#3045)
* Bump Meson64 EDGE to 5.13
* Bump Rockchip64 EDGE to 5.13.y
* Bump Odroid Xu4 edge to 5.13.y
* Bump rockchip edge to 5.13.y
2021-07-22 00:15:54 +02:00
Igor Pečovnik
e21e82b546
Upgrading sunxi, sunxi64, imx6, jetson-nano, mvebu and mvebu64 EDGE to 5.13 (#3042)
* Upgrading sunxi and sunxi64 EDGE to 5.13

Both variants tested for building

* Bump imx6 to 5.13.y

Tested

* Bump Jetson nano kernel to 5.13.y

* Move mvebu and mvebu64 edge to 5.13.y
2021-07-21 00:46:51 +02:00
lanefu
b1d82308db
RC upload flag (#3027)
* RC upload flag

* Update build-all-ng.sh

* Try RC Images

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-07-19 20:36:46 -04:00
lanefu
a46eeafa86
move pinebook tweaks (#3033)
* move pinebook tweaks

* fix dest

* Add also special keys definitions

* Clear out tech dept

* Delete prepare.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-07-19 08:14:34 +02:00
Igor Pečovnik
c064c11b47
Remove duplicated entries for Pinebook PRO bsp creation (#3031)
* Remove duplicated entries for Pinebook PRO bsp creation

* Link only CLI and desktop BSP package per board

* Adjust "
2021-07-18 15:41:58 +02:00
Igor Pečovnik
a7e16da2ce
Add Ubuntu Impish (#3006) 2021-07-14 08:45:30 +02:00
The-going
241f015ac7
formatted output of variable values (#2986)
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-07-13 20:25:25 +02:00
AndreiCherniaev
3a5cb09939
kill "EXTERNAL" (#3005)
e1526c438f (commitcomment-53297470)
2021-07-13 11:49:42 +02:00
Lane Jennison
bd40cf4c7f Merge branch 'master' of github.com:armbian/build into virtual 2021-07-11 14:03:35 -04:00
Lane Jennison
6ee2ce463a additional post image hook to assist in img conversion to qcow2 for virtual-qemu image 2021-07-11 14:03:22 -04:00
henkiejan1
6844232dd7
Added support for Linux Mint 20.3 Uma (#2985)
* Added support for Linux Mint 20.3 Uma

Because there is actual support for Linux Mint 20.x based on Ubuntu 20.04 is it technically the same version. Only the code name change every new release. Today is Linux Mint 20.2 Uma released so i added it to the host check.

* Update general.sh

Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
2021-07-11 06:59:24 +02:00
Oleg
6bd67e18e5
add media kernel for arm64 (#2971) 2021-07-07 16:15:34 +02:00
Igor Pečovnik
9d4e0408c5
Improvements for BSP creation (#2975)
* Improvements for BSP creation

- add support for the same principle found in desktop creation. For CLI package we are copying content from "bsp-cli" folders.
- moving bsp* copy function to image-helpers
- improve readme
2021-07-07 16:06:00 +02:00
Oleg
5b0dc2d7c5
add support wifi rtl8822bs for kernel 4.4 and 5.x (#2980) 2021-07-07 16:04:27 +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 Pecovnik
6fa2732629 Bugfix - repository management distribution detect 2021-07-04 10:47:05 +02:00
Igor Pečovnik
1f2e97febf
Remove Ubuntu Groovy from codebase (#2952) 2021-07-03 21:58:08 +02:00
Igor Pečovnik
ef2800c374
Adding autoremove function (#2950)
Calling apt-get autoremove right before closing image. This is handy when we need to cleanup after uninstalling some packages.
2021-07-01 18:51:16 +02:00
The-going
92b8320edd
Packaging (#2935)
* kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n

Since commit 269a535ca931 ("modpost: generate vmlinux.symvers and
reuse it for the second modpost"), with CONFIG_MODULES disabled,
"make deb-pkg" (or "make bindeb-pkg") fails with:

find: ‘Module.symvers’: No such file or directory

If CONFIG_MODULES is disabled, it doesn't really make sense to build
the linux-headers package.

Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Wed Oct 14 03:38:19 2020 +0900
Upstream commit bac977cbc0d6731fb8e67c2be0e4acbd959e10b3

Fixes: 269a535ca931 ("modpost: generate vmlinux.symvers and reuse it for the second modpost")
Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

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

* mkdebian: fix: build a package for version 5.13

upstream commit 82526ef43399a7556b860538041802042b3872c1
Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Tue Apr 20 02:05:05 2021 +0900

    kbuild: deb-pkg: change the source package name to linux-upstream

    Change the source package name from 'linux-$(KERNELRELEASE)' to
    'linux-upstream'.

    Initially, I tried to use 'linux' to be aligned with the Debian
    kernel package, but Ben suggested 'linux-upstream' so that it is
    clearly distinguished from distribution packages. [1]

    The filenames will be changed as follows:

    [Before]
      linux-5.12.0-rc3+_5.12.0-rc3+-1.dsc
      linux-5.12.0-rc3+_5.12.0-rc3+.orig.tar.gz
      linux-5.12.0-rc3+_5.12.0-rc3+-1.diff.gz

    [After]
      linux-upstream_5.12.0-rc3+-1.dsc
      linux-upstream_5.12.0-rc3+.orig.tar.gz
      linux-upstream_5.12.0-rc3+-1.diff.gz

    Commit 3716001bcb7f ("deb-pkg: add source package") introduced
    KDEB_SOURCENAME. If you are unhappy with the default name, you can
    override it via KDEB_SOURCENAME.

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

* Search by template when updating initramfs

Search by pattern first, then use in the command.
If unsuccessful then exit by mistake.

Fix:
depmod: WARNING:
could not open modules.order at /var/tmp/mkinitramfs_bp3vP5/lib/modules/5.13.0-sunxi64:
 No such file or directory
could not open modules.builtin at /var/tmp/mkinitramfs_bp3vP5/lib/modules/5.13.0-sunxi64:
 No such file or directory
When a valid directory lib/modules/5.13.0-rc6-sunxi64
Or when the user added a localversion to the configuration file
and valid directory lib/modules/5.13.0-rt7-sunxi64

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

* Code Cleanup: kernel build: Removing EXTRAVERSION Cleanup

This was intended for the EDGE kernel and is no longer required.
Moreover, this code is not working.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-06-29 20:18:52 +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
Oleg
484a49a92c
fix wifi for p1 kernel 5.12 (#2921) 2021-06-25 23:33:13 +02:00
Oleg
2f2fd48345
fix wifi rtl8723ds (#2924) 2021-06-25 23:31:56 +02:00
iav
bdd1fd92df
retun lost jq to arm builder (#2926) 2021-06-25 23:31:34 +02:00
Igor Pečovnik
4ce0b07280
Fixing Wireguard repository tag (#2913) 2021-06-22 08:05:51 +02:00
Igor Pečovnik
7d330d2e5b
Code cleaning attempts #1 (#2911)
* Remove Docker version check from compile.sh since its deprecated

* Remove meta package creation which was needed for upgrade

* Update in-code documentation

* Bugfix

* Making oneliner

* Remove Groovy debug leftovers

* Add readme to distributions

* Update

* More text adjust

* Add virtual

* add more
2021-06-21 23:03:39 +02:00
iav
7915b5a2e4
add packets to aarch64 builder for arm-trusted-firmware #2908 (#2909) 2021-06-19 23:04:42 +02:00
Igor Pecovnik
cdea7ae389 Making more conservative parallel build numbers 2021-06-13 15:53:33 +02:00
Igor Pecovnik
4d51b19596 Enable building desktop images 2021-06-13 11:56:37 +02:00
Igor Pecovnik
e94cbfae47 Optimisations for image compression when building in parallel 2021-06-13 11:06:40 +02:00
Igor Pecovnik
af5c4b4b3a Fixing permissions on runner 2021-06-12 20:56:01 +02:00
Igor Pecovnik
43f65852bf Typo 2021-06-12 20:44:57 +02:00
Igor Pecovnik
d4deca4de3 Bugfix for actions 2021-06-12 19:19:15 +02:00
Igor Pecovnik
b012a8a754 Another method for signing images 2021-06-12 16:20:46 +02:00
Igor Pečovnik
a9b81a98ec
Use sudo when signing images 2021-06-12 14:34:18 +02:00
Oleg
a3f2777f52
add legacy jetson-nano (#2890) 2021-06-10 11:46:12 +02:00
Aristo Chen
78894792a5
Update URLs (#2870)
* Update URLs

* Update URLs

* Update URLs
2021-06-10 11:27:51 +02:00
Igor Pecovnik
72406c4c17 backend: we need to sign images with sudo 2021-06-07 14:26:42 +02:00
The-going
57fe952c4f
Make the process of creating linux-source-*.deb pkg as a separate function. (#2872)
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-06-06 20:53:31 +02:00
Igor Pečovnik
83f4f85d9d
Bugfix - extrawifi is not adding in build-all scenario (#2878) 2021-06-06 14:56:06 +02:00
Igor Pecovnik
f9fef1ac85 Another small bugfix for backend 2021-06-05 09:07:47 +02:00
Igor Pečovnik
b087cfb6b3
Enable virtual ARM64 nightly builds for qemu (#2875)
* Enable Virtual qemu build targets
* Bugfix - saving build number is being overwritten before saved
* Remove stable builds, not needed
* Update kernel config, enable current instead of edge
2021-06-05 08:49:25 +02:00
Oleg
88b525117e
fix unmount (#2874) 2021-06-04 19:41:42 +02:00
iav
cda929a1b6
Make builder dockerfile to be x64 and aarch64 compatible (#2867)
* Make builder dockerfile to be x64 and aarch64 compatible
and building speed optimization

* remove hardcoded amd64
currently docker from edge not work, stable works, then stable instead edge

* libc6-dev-armhf-cross need to build rockchip uboot for helios64 under arm64

* need to add architecture to avoid blame for no docker for i386 arch

* hirsute uses same names for qemu-user-static

* let's only x64 use aptly from dev
2021-06-04 10:53:45 +02:00
Igor Pecovnik
541dc71692 Fixes for rootfs cache creation 2021-06-03 21:38:57 +00:00
Igor Pečovnik
bc32f1913d
Small bugfixes to buildall, remove patch that is not needed (#2869) 2021-06-02 10:55:17 +02:00
Igor Pečovnik
5909abd076
Hardening patch hashing method (#2868)
* Improve patch hashing method

When running script inside Github runner, hashing is different due to slightly different sort ...

* Also change method for creating hashes and supress error

* Sort is locale dependent ... of course ;)

* Cleanup
2021-06-01 19:47:45 +02:00
MichaIng
53ef87f159 Do not pre-install obsolete apt-transport-https
Since APT v1.6, HTTPS capabilities are part of the apt core package, hence apt-transport-https is not required anymore. This version is part of Debian since Stretch and Ubuntu since Bionic. The apt-transport-https still exists as transitional dummy package only.
- Changelog: https://salsa.debian.org/apt-team/apt/-/raw/main/debian/changelog
- Debian package: https://packages.debian.org/apt-transport-https
- Ubuntu package: https://packages.ubuntu.com/apt-transport-https

Signed-off-by: MichaIng <micha@dietpi.com>
2021-06-01 00:39:56 +02:00
iav
2d3f31643a
docker on aarch64 need same settings as on amd64 (#2852) 2021-05-27 20:40:15 +02:00
The-going
fc892b7e3f
Rework make linux headers (#2849)
* Rework make linux headers

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

* Make linux-source first and clear the memory

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-25 02:50:16 +02:00
Igor Pečovnik
3b3d85e25c
Upgrade EDGE to 5.12.y (#2825)
* Bump imx6 edge to 5.12.y

* Bump odroid xu4 edge to 5.12.y

* Bump Jetson nano edge to 5.12.y

* WIP: Bump sunxi to 5.12.y

- create a copy of patches and make a new link
- wireless patches needs adjutement to 5.12
- some patches are still failing

* Adjust wireless patches to build on 5.12.y

* Remove template wireless patch

* Move Espressobin edge to 5.12.y

* Bump mvebu to 5.12

- patch 92-mvebu-gpio-remove-hardcoded-timer-assignment.patch was disabled @heisath
- adjusted wireless driver for 8723ds

* Adjust sunxi / sunxi64 edge to compile

* Fix kernel config for Jetson nano edge

* bump meson64 to 5.12.y

* bump rockchip edge to 5.12.y

* Bump rockchip64 to 5.12.y

* Bump rk322x edge to 5.12.y

@paolosabatino

* Cleanup im6, re-add 5.10.y patches since one is missing in 5.12.y

* Update odroidxu4 edge links

* rk322x: moved rk322x-edge to kernel 5.12, fix overlay compilation, retouched included kernel modules

* Cleanup: remove deprecated config

Co-authored-by: Paolo Sabatino <paolo.sabatino@gmail.com>
2021-05-22 17:08:44 +02:00
The-going
8f1fb2e2be
Packaging (#2844)
* New build kernel if version ge 5.12

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

* Rename packagename for kernel in the armbian style

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

* Fix depends pkg for build linux-*

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

* Fixed version search by Source field

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

* Fix postinst, prerm scripts for headers pkg

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-22 17:01:29 +02:00
Igor Pečovnik
3e72d73d8a
Rework u-boot writing part (#2842)
Read directory value from the package
2021-05-19 22:32:08 +02:00
Igor Pecovnik
abbc67f0d2 Moved i3wm from Hirsute to Focal and make a link from Hirsute
- removed broken packages within
- enable 32bit - it builds it
- fixed small cosmetic issue in 1st stage of deboostrap
2021-05-16 15:10:56 +02:00
lanefu
3911384748
Merge pull request #2803 from The-going/packaging
chroot packaging: build script as separate function
2021-05-15 16:19:02 -04:00
lanefu
1bc196089a
use official GitHub repo for u-boot GitHub mirror 2021-05-15 15:56:32 -04:00
The-going
f86e3bde43
chroot packaging: build script as separate function
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-15 15:37:34 +03:00
Igor Pecovnik
84d7079c5d Bump with roofs cache and small cache recreation optimisation 2021-05-13 21:30:06 +02:00
Oleg
d886ee3b62
fix jetson-nano build deb board package (#2822) 2021-05-12 21:42:29 +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
76ef27621f
Backend improvements (#2812)
* Backend improvements

When making images, show with green color if image already exists.

* Few fixes
2021-05-09 17:00:31 +02:00
Igor Pecovnik
c7f5a1920b Bugfix - moving mpv from CLI BSP package 2021-05-07 19:50:30 +02:00
Igor Pecovnik
70b985d90a Bump with version 2021-05-06 11:51:17 +02:00
Igor Pečovnik
d3997fe64c
Cache creation improvements (#2806) 2021-05-05 20:49:25 +02:00
Igor Pecovnik
f43db66d32 Cosmetical in backend
Supress error when we rebuild rootfs cache
2021-05-03 00:08:55 +02:00
Igor Pečovnik
9b0dd2b839
Fix broken Docker support (#2804)
* lsb-release package is getting deprecated

It is not present on Hirsute anymore so we better remove its dependency

* - remove lsb-release dependency from docker
- exit if Docker version is too low (check works only on Ubuntu builds, else doesn't do anything)

Reference: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1916485

* Cleanup

* Remove quotes for proper pkg install

* Automatically upgrade Docker engine

* Missing python dependencies

* Bugfix - debian name is not just one word

* Put this back

* provoke error

* Revert

* Adjust Github runner to make bionic and focal and compile u-boot for test

* Adjust cron

* Remove Bionic, cron back to 14 days

* Change to ubuntu-latest
2021-05-02 18:06:38 +02:00
Jack Chen
27175e3e55
rockchip: fix emmc busy loop on Tinkerboard (#2791)
There are already emmc nodes in rk3288-tinker-s.dts, adding these nodes
to rk3288-tinker.dtsi will cause emmc busy loop on original Tinkerboard.

Signed-off-by: Jack Chen <redchenjs@live.com>
2021-05-01 19:20:41 +02:00
lanefu
9737c2171e
Merge pull request #2759 from tparys/microzed
Adds Xilinx Bootgen tools to build environment (alongside sunxi-tools, etc ..)
Adds new SoC family Zynq (7000 series, not MP/UltraScale)
Adds new board Avnet MicroZed
2021-05-01 11:38:06 -04:00
tim
cd0301cd62 Adjusting typo 2021-04-24 13:22:20 -04: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
b164fcf54b
Merge neofetch to armbian-config (#2499) 2021-04-18 22:49:30 +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
tim
aba3809884 Only compile Xilinx Bootgen when building Zynq based image 2021-04-17 16:07:44 -04:00
Igor Pecovnik
4a684bfb84 backend tweaks: we don't need to cycle all distributions when making u-boot package 2021-04-14 20:04:57 +02:00
Przemysław Sztoch
3f4c73727a
Better conditions for newer distribution (#2768) 2021-04-14 00:44:29 +02:00
Piotr Szczepanik
7504be2e3d
Unset SRC_EXTLINUX and SRC_CMDLINE in build-all-ng.sh (#2772)
* Unset SRC_EXTLINUX in build-all-ng.sh

* Unset SRC_CMDLINE in build-all-ng.sh
2021-04-13 23:57:00 +02:00
Oleg
e275961be4
fix extlinux.conf for u-boot dtb and add arm32 (#2766) 2021-04-13 10:16:42 +02:00
IAMLIUBO
0a92c19e7b
Add support Mint 20.1 ulyssa (#2764) 2021-04-13 10:16:14 +02:00
tim
eee718649d Add Xilinx bootgen to build environment 2021-04-10 20:23:56 -04:00