Commit Graph

1109 Commits

Author SHA1 Message Date
Ian Leonard
3c999938ed scripts: suppress qa_check error message when no issues present
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-08-15 06:06:33 +00:00
Rudi Heitbaum
44d5686e0d scripts/image: cleanup ORIGIN_URL 2022-07-21 12:00:49 +00:00
Lukas Rusak
3fa587eb52 add ability to log qa checks 2022-06-28 15:24:22 -07:00
Ian Leonard
e4bded9315 makefile_helper: only source necessary values from buildsystem's config
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-05-01 17:56:34 +00:00
Rudi Heitbaum
03f142b99e scripts/makefile_helper: make sure variables are set before running an rm 2022-04-30 09:58:07 +00:00
Ian Leonard
1f4ffcc981 scripts/makefile_helper: initial commit
The buildsystem's Makefile hardcodes the location of the BUILD_DIR used
by the rest of the buildsystem. Add a script to handle what BUILD_DIR
might be set to.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-04-24 20:08:53 +00:00
CvH
b284b18d89 Merge pull request #6262 from antonlacon/show-config-cflags
Account for setup_toolchain in show_config's reported CFLAGS/LDFLAGS
2022-02-27 21:16:40 +01:00
Christian Hewitt
3ccf688470 scripts: add Radxa Zero2 to uboot_helper 2022-02-19 11:01:39 +00:00
Christian Hewitt
b04da7c1e3 scripts: drop beelink-s922x from helper as no longer needed 2022-02-19 11:01:39 +00:00
Ian Leonard
41d833c2aa scripts/image: include adjustments to cflags made by toolchain setup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-02-19 07:30:16 +00:00
CvH
5125de9624 Merge pull request #5144 from mglae/le10_autoreconf
autoreconf: support custom PKG_CONFIGURE_SCRIPT
2021-12-27 08:06:54 +01:00
Christian Hewitt
eeae7f246b scripts: use bananapi-m5_defconfig 2021-12-17 10:01:51 +00:00
SupervisedThinking
8d70c35a3d scripts/build: load meson host conf as native file 2021-11-29 17:31:58 +01:00
CvH
f440e3bc37 Merge pull request #5899 from ToKe79/mtools-update_mkimage_mod
Update mtools + optimize mkimage to catch errors / to allow SYSTEM_SIZE >= 1024 / for speed
2021-11-28 12:31:07 +01:00
Christian Hewitt
f7812aaf95 scripts: update devices in uboot_helper 2021-11-26 12:00:19 +00:00
Tomáš Kelemen (vudiq)
41b6c049ea mkimage: optimize disk image creation
In case SYSTEM_SIZE was higher than 1024, mcopy would fail without the
failure being caught. The failure was probably due to invalid geometry
(number of sectors per track too high?). However mformat should be able
to determine the geometry on its own, when no geometry parameters are
supplied. After discussion on IRC with vpeter we came to this solution.

* create temporary folder in the target folder
* use sparse files to create image and partitions
* no extractions of the partitions from image
* modify mcopy alias to copy to the partition sparse file
* add `-o` switch to mcopy alias, so mcopy does not prompt in case of
  existing file in the partition
* remove alias for mformat (is used only one time)
* catch errors for mformat/mcopy/mmd
* use mcopy alias when copying files to virtual appliance part1
* move DISK_LABEL setting closer to the part where it is used
* write MBR without test (it should be already present and if not, dd
  will fail anyway and error is caught)
* update output when vmdk is created

Co-authored-by: Peter <peter.vicman@gmail.com>
2021-11-23 21:28:46 +01:00
Michael Klein
749e9c2f54 Allwinner: add Crust support for bananapi-m2-zero 2021-11-21 15:52:03 +01:00
Tomáš Kelemen (vudiq)
38d1939f4e install2emmc: use SYSTEM_SIZE and DISTRONAME in script
Script uses arbitrary values for FAT32 partition and name of the
distribution. Using placeholders in the script and replacing them at
build time offers flexibility, i.e. no need to change arbitrary values
in script when SYSTEM_SIZE is changed.
2021-10-15 22:02:15 +02:00
Alex Bee
8f104ff85b Rockchip: RK3399: add support for Radxa ROCK Pi 4+ 2021-10-11 15:26:36 +02:00
Alex Bee
187f3999c9 Rockchip: RK3399: add support for ROC-RK3399-PC-PLUS 2021-10-11 15:26:21 +02:00
CvH
7812192049 Merge pull request #5436 from antonlacon/functions-cleanup
Reduce subprocesses in buildsystem
2021-10-03 08:00:07 +02:00
CvH
f4096df37c Merge pull request #5539 from mglae/le10_buildsystem_cmake_optimization
buildsystem: cmake: allow specifying our optimization level
2021-10-02 13:45:36 +02:00
Ian Leonard
5db456bcba scripts/build: eliminate use of dirname
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:50 +00:00
Ian Leonard
3936c9e5ab scripts/image: reduce use of basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:50 +00:00
Ian Leonard
29a3baee03 scripts/mkimage: elminate use of basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:50 +00:00
Ian Leonard
c81efe884a scripts/unpack: remove use of dirname and basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:50 +00:00
Ian Leonard
9326345a6e scripts/unpack: minor cleanup
Eliminate use of cat and subshells in patching.

The previous code takes the first field of PKG_BUILD, using a space
as the delimiter. PKG_BUILD used to be generated using 'ls' at least
as of before commit ef8e871d3c in 2013.

Today, PKG_BUILD is a set path, without spaces.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:49 +00:00
Jernej Škrabec
a1716d42bb Merge pull request #5545 from CvH/11.0/change_sha256
scripts/get_archive: allow changing sha256 on the fly
2021-09-19 12:05:18 +02:00
mglae
5789d3dff9 buildsystem: allow specifying our optimizing level for packages build with cmake
Using -DCMAKE_BUILD_TYPE=MinSizeRel result in finally building with -Os. Our default
optimization or '+speed' are ignored, behavior is like always using '+size'.

Changing to default -DCMAKE_BUILD_TYPE="" is not allowed by to many packages including
Kodi, they are forcing a default option (in worst case "Debug", e.g. llvm)

Redefine the cmake parameters to not include any options and do the same for host choosing
"Release" as build type.
2021-09-17 18:20:08 +02:00
Ian Leonard
ee99c226bb scripts/extract: less zealous quoting
Don't quote TAR_OPTS or PKG_TAR_COPY_OPTS on purpose as these are (or could be)
lists of options to tar.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-08-13 01:09:29 +00:00
Ian Leonard
7bbd968108 extract: cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-08-11 18:16:56 +00:00
Ian Leonard
a055e09c3b buildsystem: add .tar.zst handling for package tarballs
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-08-11 17:56:42 +00:00
CvH
c2c033d772 Merge pull request #5314 from ToKe79/libreelec-master/get_git
get_git: check only folder, not files
2021-08-11 13:19:46 +02:00
CvH
4807ea751a scripts/get_archive: allow changing sha256 on the fly 2021-08-10 19:51:45 +02:00
MartB
956779c240 genbuildplan: fix typo in circular dep. detection 2021-08-05 16:36:14 +02:00
mglae
c328de8278 build: export PKG_ORIG_SYSROOT_PREFIX
Required to create $PKG_NAME-config scripts in $TOOLCHAIN/bin
2021-07-01 23:42:56 +02:00
Alex Bee
f88d19b575 buildsystem: introduce $TARGET_KERNEL_PATCH_ARCH 2021-06-11 18:06:58 +02:00
Alex Bee
6560ed36ef Rockchip: u-boot: fix boot for RK3999-ROC-PC 2021-06-04 22:16:41 +02:00
Alex Bee
8d87ef9f77 Rockchip: exchange devicetrees for RK3399-ROC-PC and Rock Pi 4 2021-06-02 09:53:17 +02:00
mglae
c0c15bf059 Merge pull request #5402 from Portisch/do_not_strip_components
scripts/extract: add option 'PKG_TAR_STRIP_COMPONENTS'
2021-05-29 10:43:47 +02:00
Portisch
641caf3b52 scripts/extract: add option 'PKG_TAR_STRIP_COMPONENTS'
Some archive do not include a top level directory.
2021-05-28 08:33:36 +02:00
heitbaum
3cc4d90cda Rockchip (RK3399): add Radxa ROCK Pi N10 2021-05-28 04:00:52 +00:00
Tomáš Kelemen (vudiq)
64f9f95998 get_git: check only folder, not files
this prevents removal of potential archive files in the same sources
subfolder for a package
2021-04-11 22:04:13 +02:00
Jernej Skrabec
8a7ac3950d uboot_helper: Add Beelink GS1 Crust config 2021-03-31 19:41:03 +02:00
CvH
0e5e0512b7 Merge pull request #4482 from vpeter4/unpack-circular
unpack: prevent circular unpacking between two packages
2021-03-27 07:57:02 +01:00
Alex Bee
50336190c4 Rockchip: reduce number of images
In order to reduce the number of images, I trimed to build only the most basic version which allows to boot all revsions and has all capabilities we need. (People can replace dtb from /usr/share/bootloader)
I also dropped some boards where I found shortcomings in the device tree which might be easy to solve but I can't test and they were not supported in earlier releases.
2021-02-28 11:14:51 +01:00
Alex Bee
071cc4cee1 uboot_helper: fix config files names for RK3399 and RK3288 2021-02-17 21:46:44 +01:00
mglae
730db0768a autoreconf: support custom PKG_CONFIGURE_SCRIPT 2021-02-16 19:25:05 +01:00
Lukas Rusak
ea3df74224 scripts/uboot_helper: add iMX8 2021-02-08 13:25:48 -08:00
Michael Lange
c683091369 scripts/checkdeps: fix gentoo "/usr/inculde/stdio.h" 2021-02-07 14:46:41 +01:00