Commit Graph

1171 Commits

Author SHA1 Message Date
Christian Hewitt
3682e022df Merge pull request #10004 from heitbaum/buildfix
build: define CMAKE_EXPORT_COMPILE_COMMANDS as an environment variable not a define
2025-05-16 09:52:24 +04:00
Luz Paz
b2235ef5e0 treewide: fix typos 2025-05-11 18:04:57 -04:00
Christian Hewitt
2525a6d73d Generic: unbrand ovf.template
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
addfbf42b2 treewide: set DISTRO_HOME_URL from options
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
fa90a43177 treewide: unbrand LE_TMP to IMG_TMP
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
51b1613d9e scripts: unbranding changes for image script
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
2bb6195b2d treewide: unbrand LIBREELEC_DEVICE to DISTRO_DEVICE
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
c76d6596cd treewide: unbrand LIBREELEC_PROJECT to DISTRO_PROJECT
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
1789798523 treewide: unbrand LIBREELEC_BUILD to DISTRO_BUILD
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
868b16b46e treewide: unbrand LIBREELEC_ARCH to DISTRO_ARCH
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt
0cf465a345 treewide: unbrand LIBREELEC_VERSION to DISTRO_VERSION
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Rudi Heitbaum
8ceacbac6b build: define CMAKE_EXPORT_COMPILE_COMMANDS as an environment variable not a define.
When building utfcpp (and other packages) a CMake warning is issued.

    CMake Warning:
      Manually-specified variables were not used by the project:

        CMAKE_EXPORT_COMPILE_COMMANDS

Before this change the following files are present:

    $ cd build.LibreELEC-Generic.x86_64-13.0-devel/build

    $ find utfcpp-4.0.6 -name build.ninja
    utfcpp-4.0.6/.x86_64-libreelec-linux-gnu/build.ninja
    $ find utfcpp-4.0.6 -name compile_commands.json

    $ find soxr-0.1.3 -name build.ninja
    soxr-0.1.3/.x86_64-libreelec-linux-gnu/build.ninja
    $ find soxr-0.1.3 -name compile_commands.json
    soxr-0.1.3/.x86_64-libreelec-linux-gnu/compile_commands.json

When removing the define CMAKE_EXPORT_COMPILE_COMMANDS:

--- a/scripts/build
+++ b/scripts/build
@@ -147,8 +147,7 @@
   MESON_BUILD_TYPE="plain"
 fi

-CMAKE_GENERATOR_NINJA="-GNinja \
-                       -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
+CMAKE_GENERATOR_NINJA="-GNinja"

 # configure TARGET build defaults
 TARGET_CONFIGURE_OPTS="--host=${TARGET_NAME} \

The resulting build do not have the warning with utfcpp but the files
compile_commands.json are not created (as expected.)

    $ find utfcpp-4.0.6 -name build.ninja
    utfcpp-4.0.6/.x86_64-libreelec-linux-gnu/build.ninja
    $ find utfcpp-4.0.6 -name compile_commands.json

    $ find soxr-0.1.3 -name build.ninja
    soxr-0.1.3/.x86_64-libreelec-linux-gnu/build.ninja
    $ find soxr-0.1.3 -name compile_commands.json

With the change to declare CMAKE_EXPORT_COMPILE_COMMANDS as an environment
variable the warning is not preset with utfcpp and the compile_commands.json
are created, matching the current functionaility but without the warning.

Ref:
- https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html
  - This is initialized by the CMAKE_EXPORT_COMPILE_COMMANDS environment variable.
- https://cmake.org/cmake/help/latest/envvar/CMAKE_EXPORT_COMPILE_COMMANDS.html#envvar:CMAKE_EXPORT_COMPILE_COMMANDS
- https://stackoverflow.com/questions/20059670/how-to-use-cmake-export-compile-commands
2025-04-25 11:07:51 +00:00
Matthias Reichl
17d310e60a Revert "buildsystem: use distribution defined addon install path"
This reverts commit 31dfa27800.
2025-02-08 00:34:21 +01:00
luzpaz
91a4766cef treewide: fix typos
Found via `codespell -q 3 -S "*.patch,*.po" -L acount,afile,distroname,parm,serie,synopsys`
2025-02-03 07:04:59 -05:00
Christian Hewitt
d3e4dbf9aa Merge pull request #7229 from Portisch/ADDON_INSTALL_DIR
buildsystem: use distribution defined addon install path
2025-01-17 14:30:50 +04:00
Christian Hewitt
066adecd5d scripts: add LibreComputer alta/solitude to uboot_helper 2024-11-01 13:41:12 +00:00
Ian Leonard
7b57ee7a3c scripts/get_archive: error on 400 series http status codes
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-10-19 02:26:30 -04:00
Rudi Heitbaum
00b8c80375 Merge pull request #9347 from antonlacon/use-curl
buildsystem: replace wget with curl
2024-10-19 11:09:47 +11:00
Ian Leonard
95e2a94898 build: replace wget with curl for fetching archives
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-10-18 19:49:30 -04:00
Ian Leonard
a7d9b7fc1c checkdeps: replace wget with curl
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-10-18 19:49:30 -04:00
Ian Leonard
d6218c0409 checkdeps: add rsync as required package
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-10-18 19:46:36 -04:00
Matthias Reichl
86f88a28d0 Merge pull request #9301 from heitbaum/cfglib
add cfg-libs option to PKG_BUILD_FLAGS to fix configure unrecognized options
2024-10-18 13:16:39 +02:00
heitbaum
fa6e7ee5b7 NXP (iMX8): add support for Coral Edge TPU Development Board 2024-10-01 07:09:21 +00:00
Rudi Heitbaum
46fec4402f scripts/build: add cfg-libs option to PKG_BUILD_FLAGS to fix configure unrecognized options
Allows packages to be updated to remove the configure warning:
  configure: WARNING: unrecognized options: --disable-static, --enable-shared

add the following line to the affected package.mk files
  PKG_BUILD_FLAGS="-cfg-libs"

-cfg-libs, -cfg-libs:host and -cfg-libs:init are used
2024-09-15 11:46:08 +00:00
Rudi Heitbaum
df06309b7d scripts and tools: only use --passive-ftp for ftp: urls 2024-09-08 11:03:31 +00:00
Jernej Skrabec
e9f9e78201 scripts: add python toolchain 2024-08-24 08:12:11 +02:00
Jernej Skrabec
68313a722e scripts: add python-flit toolchain 2024-08-24 08:12:11 +02:00
CvH
58ebc091cf cleanup scripts: scripts/ 2024-07-06 13:09:20 +02:00
Michele Zuccala
15d1f55f20 uboot_helper: RK3399: Add Radxa ROCK 4C+
Added Radxa ROCK 4C+ which is officially supported by uboot and kernel.
2024-05-10 17:24:15 +02:00
Andreas Baierl
cba6ee6dd8 checkdeps: fix dependencies for aarch64 debian/ubuntu host
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
2024-04-18 09:18:10 +02:00
Christian Hewitt
2f91a9f20a Merge pull request #8517 from heitbaum/make2
drop PKG_TOOLCHAIN hardcoding - already defaults to …
2024-01-30 16:14:42 +04:00
Matthias Reichl
a6ce06cb01 scripts/mkimage: create storage filesystem without orphan_file option
resize2fs creates a filesystem with unclean orphan file when resizing
to more than 32GB if the orphan_file option is enabled, resulting in
an unmountable storage partition after initial resize.

Explicitly disable the option until the issue is resolved.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-01-17 16:49:39 +01:00
Rudi Heitbaum
3b0e6d5c8a scripts/build: handle GNUmakefile in addition to Makefile for PKG_TOOLCHAIN=make 2024-01-14 04:39:45 +00:00
Matthias Reichl
072f535087 scripts/image: Fix RPi4 and RPi5 noobs build
When making the boodloader files optional I forgot to remove the code
that unconditionally copies the bootloader files which broke noobs
build for RPi4 and RPi5. Drop the code, the files are already copied
by the for loop above.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-01-02 15:19:45 +01:00
Rudi Heitbaum
eb96db0e50 scripts/checkdeps: add rdfind needed by kernel-firmware 2023-11-13 12:04:11 +00:00
Christian Hewitt
c3a0d90ebc scripts: drop WeTek Hub from uboot_helper 2023-10-20 13:30:04 +00:00
Matthias Reichl
968f589b37 RPi: make bootloader files optional
RPi4 only needs start.elf/fixup.dat, RPi5 doesn't need any of them

Signed-off-by: Matthias Reichl <hias@horus.com>
2023-09-29 11:00:16 +02:00
Matthias Reichl
63c68f7670 scripts/image: support EXTRA_CMDLINE in noobs image creation
Signed-off-by: Matthias Reichl <hias@horus.com>
2023-08-20 17:02:18 +02:00
CvH
3f49a597e6 Merge pull request #7036 from antonlacon/le11-scripts
buildsystem: additions to show_config, related
2023-04-16 10:34:43 +02:00
Matthias Reichl
4c7b120ddf scripts/build: properly honor strip build flag
Package building honor's the strip flag so we can prevent executables
from being stripped.

But copying files to INSTALL ignored that flag which meant the flag
had practically no effect.

Fix this by using the same logic as we do in the meson strip handling in
line 170 and in config/functions.

Also add the missing quotes in scripts/build to align it with config/functions

Signed-off-by: Matthias Reichl <hias@horus.com>
2023-03-30 17:13:58 +02:00
CvH
c8af503bb8 Merge pull request #7459 from heitbaum/7-zip-build
toolchain: migrate from p7zip to 7-zip
2023-03-05 21:34:51 +01:00
Christian Hewitt
49950be03a scripts: add BananaPi M2S to uboot_helper 2023-02-26 13:07:02 +00:00
Christian Hewitt
e753bdf537 scripts: add BananaPi M2-Pro to uboot_helper 2023-02-26 13:06:55 +00:00
Alex Bee
a16a1a3cf8 scripts/image: add --remove-destination when copying filesystem
This is required to override symlinks which might exist there already.
2023-02-11 09:22:33 +01:00
Jernej Skrabec
826c062bc0 uboot_helper: update orangepi-3-lts configuration 2023-02-08 18:03:12 +01:00
Rudi Heitbaum
c2a52dc4ac toolchain: migrate from p7zip to 7-zip
The -l option to 7za is not included the 7-Zip 22.01 version,
it was an option added to the p7zip version:

  don't store symlinks; store the files/directories they point to
  (CAUTION : the scanning stage can never end because of recursive
  symlinks like 'ln -s .. ldir')

The default for p7zip 16.02 7za was to store symlinks.
The default for 7-zip 22.01 7za is not to store symlinks.

test output is below and the -l option has been dropped from scripts/install_addon

$ ls -l test
total 4
-rw-r--r-- 1 docker docker 4 Jan 29 10:35 abc
lrwxrwxrwx 1 docker docker 3 Jan 29 10:35 def -> abc

7-Zip (a) 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
 64-bit locale=en_US.UTF-8 Threads:16
$ 7za a -mx9 -bsp0 -bso0 -tzip test.zip test
$ unzip -v test.zip
Archive:  test.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2023-01-29 10:36 00000000  test/
       4  Stored        4   0% 2023-01-29 10:35 4788814e  test/abc
       4  Stored        4   0% 2023-01-29 10:35 4788814e  test/def
--------          -------  ---                            -------
       8                8   0%                            3 files

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)
$ 7za a -mx9 -bsp0 -bso0 -tzip test.zip test
$ unzip -v test.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2023-01-29 10:35 00000000  test/
       4  Stored        4   0% 2023-01-29 10:35 4788814e  test/abc
       3  Stored        3   0% 2023-01-29 10:35 352441c2  test/def
--------          -------  ---                            -------
       7                7   0%                            3 files

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)
$ 7za a -l -mx9 -bsp0 -bso0 -tzip test.zip test
$ unzip -v test.zip
Archive:  test.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2023-01-29 10:35 00000000  test/
       4  Stored        4   0% 2023-01-29 10:35 4788814e  test/abc
       4  Stored        4   0% 2023-01-29 10:35 4788814e  test/def
--------          -------  ---                            -------
       8                8   0%                            3 files
2023-02-04 03:03:19 +00:00
Matthias Reichl
e63855bc0f scripts/mkimage: support multiple distroconfig files
Signed-off-by: Matthias Reichl <hias@horus.com>
2023-02-03 16:02:21 +01:00
Matthias Reichl
156a3f2614 scripts/image: support multiple distroconfig files
Signed-off-by: Matthias Reichl <hias@horus.com>
2023-02-03 16:02:21 +01:00
Jernej Skrabec
1bd87f7360 uboot_helper: Add OrangePi 3 LTS target 2023-01-02 16:01:01 +01:00
Portisch
31dfa27800 buildsystem: use distribution defined addon install path 2022-12-10 21:47:19 +01:00