Commit Graph

122 Commits

Author SHA1 Message Date
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
Igor Pečovnik
4ce0b07280
Fixing Wireguard repository tag (#2913) 2021-06-22 08:05:51 +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
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
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
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
Igor Pečovnik
b164fcf54b
Merge neofetch to armbian-config (#2499) 2021-04-18 22:49:30 +02:00
tim
aba3809884 Only compile Xilinx Bootgen when building Zynq based image 2021-04-17 16:07:44 -04:00
tim
eee718649d Add Xilinx bootgen to build environment 2021-04-10 20:23:56 -04:00
Przemyslaw Sztoch
738996ea33 Better user path config and support for etworkd
add user path for configuration scan
check for NetworkManager/networkd
support for bullseye

(i.e. path: config/cli and files: packages, packages.remove)
2021-04-09 10:27:52 +02:00
Igor Pecovnik
4d30ba5545 Bugfix for determining changes in patches
Related to https://github.com/armbian/build/pull/2704
2021-03-28 12:19:36 +02:00
Igor Pečovnik
2eb08df632
Use MAINLINE_MIRROR for creating armbian-firmware package (#2703)
We are using several alternative sources for main Linux kernel code, but not for linux-firmware which is also mirrored the exact same way. This will have major impact on users that are located in Asia and use mirrors from there.
2021-03-18 17:14:11 +01:00
Igor Pečovnik
f985ec811a
Update compilation.sh
Closes https://github.com/armbian/config/issues/141
2021-03-12 14:49:18 +01:00
Igor Pecovnik
a57810a413 ZSH packing bugfix 2021-03-08 07:41:52 +00:00
Igor Pecovnik
b45fe0c9ec Update meson64 legacy config and cosmetic bugfix to zsh package creation 2021-03-07 21:24:33 +01:00
Igor Pečovnik
eb2060ab46
Move changing to BASH to armbian-config (#2694)
This prevents unwanted automated switching back to bash on upgrade
2021-03-07 16:06:34 +01:00
Werner
214aab8d9a
Add debconf to dependencies (#2689) 2021-03-05 21:53:29 +01:00
Igor Pečovnik
3a74abe43d
Merge desktop branch (#2662)
Co-authored-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Richard Neese <r.neese@gmail.com>
Co-authored-by: iav <iav@iav.lv>
Co-authored-by: lanefu <lanefu@users.noreply.github.com>
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
Co-authored-by: Oleg <balbes-150@yandex.ru>
Co-authored-by: Lane Jennison <lane@lane-fu.com>
Co-authored-by: JMCC <jmcc1@gmx.com>
2021-02-24 18:19:09 +01:00
Igor Pečovnik
dedf5b3bfc
Proper BASH / ZSH changing. (#2559)
Not all variants have BASH installed on the same location. Now scripts checks where it is.
2021-01-19 14:33:21 +01:00
Igor Pecovnik
dc544f4acd ZSH - disable auto update since we provide update via package 2021-01-10 16:04:40 +01:00
Igor Pečovnik
a4f315c72d
Add support for ZSH / TMUX / oh-my-zsh (#2478)
* Add support for ZSH / TMUX / oh-my-zsh

* Selecting default shell at 1st run

* Install ZSH by default except on minimal image

* Lets rather create armbian-zsh package

* - fix remaining ZSH problems
- add systemd timer to remove default desktop autologin feature
- change DESKTOP_AUTOLOGIN to disabled by default

* Few small improvements

* Oneliner for revering all users back to BASH if package is uninstalled

* Properly escape variables

* Fixing chmod

* More cryptic awk magic to fix permissions for all normal users that are getting zsh magic
2020-12-21 00:44:22 +01:00
Igor Pecovnik
583c8ddf6e Revert "Revert "Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)""
This reverts commit 7a7530849d.
2020-12-19 15:08:55 +01:00
Igor Pecovnik
7a7530849d Revert "Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)"
This reverts commit f8cd769b46.
2020-12-16 11:00:14 +01:00
The-going
f8cd769b46
Fix moving 'armbian-config_*. deb' and clearing temporary folders (#2455)
Try to create bootloader and kernel packages several times during
one VM session and you will see in /tmp/ many temporary folders like:
 tmp.6D2bjgqMQ9
 tmp.7Uj9BtIXPy
 tmp.f3a2tmt7Cu
......
Some folders contain armbian-config packages

Temporary folders should be deleted!
2020-12-15 22:24:47 +01:00
Igor Pečovnik
3ddd91de71
Add several small improvements for building all images (#2365)
* Add several improvements for build all images / kernels
* More small fixes
* Adjust version
2020-11-22 08:54:41 +01:00
Igor Pecovnik
37b50f154a Bugfix related to firmware creation 2020-11-12 19:46:47 +01:00
Igor Pečovnik
fc3e56bf7a
Left overs (#2330)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here

* Add delete after option
2020-11-11 19:29:50 +01:00
Igor Pečovnik
694b2313dd
Cosmetical: exchange mv with rsync (#2329)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here
2020-11-11 19:25:51 +01:00
Piotr Szczepanik
ed428c986c
Enable multithreading for kernel packaging (#2290) 2020-11-05 22:06:36 +01:00
Werner
4532f2b1f7
Fix mixing sources due to improper moving of debs (#2293) 2020-10-31 20:00:43 +01:00
Igor Pečovnik
98f1df4e79
More fixes for (not)improved_git (#2287)
* Reverting improved_git to normal in the patch creating function

* Remove two more variants of improved_git which is causing us headache
2020-10-27 20:41:53 +01:00
Igor Pečovnik
2793bd15d2
Reverting improved_git to normal in the patch creating function (#2286) 2020-10-27 19:20:53 +01:00
Igor Pečovnik
51566cc479
Bugfix for multicore compilation (#2280)
* Bugfix for multicore compilation

* Missing second part
2020-10-25 19:13:13 +01:00
Igor Pecovnik
9b12d2907f Improve multicore build process by make use of overlays and uniqie temporally build directories 2020-10-21 15:31:32 +02:00
Igor Pecovnik
56c2ee5382 Backend hash creation bugfix 2020-10-18 16:34:44 +02:00
Igor Pečovnik
e8f961c9c7
Mitigate git server failures by retrying git commands several times. (#2251)
* Mitigate git server failures by retrying git commands several times.
* Bugfix - commit type was not working at all. Now it works
2020-10-14 08:36:21 +02:00
Igor Pecovnik
668e764357 Backend - split upstream changes to beta and stable 2020-10-04 16:55:11 +02:00
Igor Pecovnik
f41e3b5a2a Typo backend related bugfix - single quote was placed at the wrong location 2020-09-06 23:44:31 +02:00
Igor Pecovnik
2b1d1dde28 Internals - properly calculated hash for kernel patches 2020-09-06 14:42:21 +02:00
Igor Pečovnik
82cf5d3b16
Fixing toolchains (#2160)
* Fixing toolchains

* Tested toolchain download
2020-08-25 22:42:06 +02:00
Piotr Szczepanik
ac95cf5681
Fixed running compile_uboot directly - broken since bce24a2 (#2139) 2020-08-08 22:52:48 +02:00
Igor Pecovnik
7427b0b0c4 Remove resolvconf hard dependency on armbian-config
https://github.com/armbian/config/issues/98
2020-07-31 19:14:34 +02:00
Igor Pečovnik
97333825be
Reverting bce24a2e8d with a condition. (#2091)
@the-going
2020-07-14 13:10:44 +02:00
Igor Pečovnik
56f7fa2b9e
Improve patch making (#2070)
* Improve patch making
* Better default patch name
* Remove the patch file in the sources since we only need to extract the name
2020-07-08 09:28:55 +02:00
Manuel Rüger
4555a7aed5
Shellcheck fix4 (#2061)
* compilation.sh: Lint with shellcheck

* configuration.sh: Lint with shellcheck

* debootstrap.sh: Lint via shellcheck

* Update configuration.sh

* Update compilation.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-25 11:07:24 +02:00
Igor Pecovnik
ce5d51c2de
Another small shellcheck issue
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 07:39:00 +02:00