Commit graph

1192 commits

Author SHA1 Message Date
Matthias Reichl
546e7c653f buildsystem: add support for reporting build timing details
Timing detail reporting can be enabled by setting
TRACE_BUILD_TIMING=1

This enables timestamping collecting at various build stages so we
can easily analyze how long eg configure, make/build, install etc
steps take.

Signed-off-by: Matthias Reichl <hias@horus.com>
2022-09-22 19:33:30 +02:00
lihex
ec1210eebc
force overwrite file on unziping files
add flag "-o" to overwrite file on unzipping.
when a build is interrupted by some issues, it will cause a re-substitution problem after a rebuild the target whose source code come from a zip file (like target jzintv)
2022-09-21 21:06:25 +08:00
Alex Bee
109b7bc2d0 Rockchip: switch to mainline u-boot 2022-09-12 08:21:01 +00:00
CvH
017ceab30e
Merge pull request #6705 from SupervisedThinking/up_checkdeps_arch
[le11] scripts/checkdeps: add EndeavourOS & fix Java
2022-09-02 05:42:30 +02:00
Christian Hewitt
e924769df9 samsung: add support for an XU3 image 2022-08-21 12:24:14 +00:00
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
SupervisedThinking
3f099ca0ed scripts/checkdeps: add EndeavourOS & fix Java 2022-08-04 11:34:45 +02: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
Tomáš Kelemen (vudiq)
ee6140e55c
Merge 'libreelec/master' 2022-03-04 00:02:04 +01:00
GavinDarkglider
800557a248
More Nintendo Switch fixes (#1548)
* Downgrade glibc to 2.27 for L4T Builds.
* Downgrade binutils to 2.32 for L4T Builds.
* Update L4T Project Options
* Refactor tegra-bsp package
* Import/Rebase CTC's ffmpeg patches, and switch decoder to nvv4l2 from nvmpi. Fixes decoder issues
* Enable all disabled cores
* Remove hack in busybox package to dump firmware into L4T Builds, we now handle this in tegra-bsp package.
* More L4T project cleanups
* Bring switch-bootloader package.mk inline with upstream formatting
* Fix reboot_payload
* Add proper tegra-bsp:init support
* Bootloader cleanups, seperate bootloader stuff for libreelec builds
* Update init for supporting all distros on Nintendo Switch
* Add proper splash images for libreelec builds.
* Final bootloader fixes
* switch-bootloader-merge-fixes
* Fix uboot merge issues
* fix bmp
* It all builds
* add Basic USB Gadget(Serial console only)
* Properly fix mtp, and finish gadget stuff
2022-03-03 21:48:22 +01: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
Tomáš Kelemen (vudiq)
be47bb0834
use grub for both - 32/64 bit - EFI boot
* grub: update to latest release
* gnulib: update to match grub bootstrap.conf
* grub: build 32 and 64 bit EFI images
* syslinux: do not copy EFI image
* installer: adapt script to above changes
* mkimage: virtual: build only for 64-bit Generic
* mkimage: grub: create cfg / copy EFI images only for 64-bit Generic
2021-11-28 10:45:28 +01:00
Tomáš Kelemen (vudiq)
6bd3406f20
Merge branch 'libreelec-master' 2021-11-27 12:32:40 +01:00
Christian Hewitt
f7812aaf95 scripts: update devices in uboot_helper 2021-11-26 12:00:19 +00:00
Tomáš Kelemen (vudiq)
0217b7a165
mkimage: additional changes
* create temporary folder in the target folder
* move DISK_LABEL setting closer to the part where it is used
* te 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
2021-11-23 22:23:33 +01: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
Peter
99c8a53164
mkimage: use sparse files during disk image creation
Sparse files are created much faster than writing full disk image and
extracting individual partitions from the disk image.
2021-11-22 22:52:27 +01:00
Tomáš Kelemen (vudiq)
3c36b4f045
mkimage: rework FAT32 population
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?). After discussion on IRC with
vpeter we came to this solution.

* extract the FAT32 partition from the image
* format the extracted partition without any geometry parameters
  (mformat is able to determine the geometry by itself)
* install/copy files to the extracted partition
* verify the partition
* merge the partition back to the image

The extraction of the FAT32 partition is also needed for the OVA image
in case of Generic project.

Errors while mformat/mcopy/mmd will now be caught and image creation
will be terminated with an error message.

Removed alias for mformat, as it is used only once. Added `-o` to alias
for mcopy, just in case, as the output is now redirected, in case a file
would already exist, the prompt would be not shown and image creation
would just hang (ctrl-c does not work, had to use kill -9 on mcopy
during my testing when I forgot the `-o` switch).

For OVA full path to toolchain is not needed, as the alias has already
the partition in it, not the image.
2021-11-22 00:11:28 +01:00
Michael Klein
749e9c2f54 Allwinner: add Crust support for bananapi-m2-zero 2021-11-21 15:52:03 +01:00
Tomáš Kelemen (vudiq)
4087b05eb7
get_git: create shallow clones
preserves space, tarballs can be reused if the package repository gets
nuked or the commit disappears from the history (e.g. in case of a
forced pushed)
2021-11-20 12:23:07 +01:00
Tomáš Kelemen (vudiq)
7061d4e297
image: fix symlink creation for kernel modules overlays 2021-11-20 12:19:42 +01:00
GavinDarkglider
c03d8024fb
Add support for Nintendo Switch (#1536) 2021-10-27 13:36:27 +02:00
Tomáš Kelemen (vudiq)
e8c3695999 mkimage: remove copying of fixup4.dat 2021-10-26 22:19:16 +02:00
Tomáš Kelemen (vudiq)
bdb7d1951d Pull updates from LibreELEC/master 2021-10-21 10:05:13 +02: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
Tomáš Kelemen (vudiq)
ff4d1dd698 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 21:45:09 +02:00
David Lawson
24b8ee0712 Add support for RPi4.aarch64
port of 1bd927e074
2021-10-15 21:40:40 +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
Tomáš Kelemen (vudiq)
607dcb16b9 Merge remote-tracking branch 'libreelec/master' 2021-10-07 11:40:15 +02:00
Tomáš Kelemen (vudiq)
580391f3b5 Initial support for Generic.i386 (32-bit PC) 2021-10-05 10:27:28 +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
Demetris Ierokipides
e61dc81459 Add Support for the Capcom Home Arcade Console
https://capcomhomearcade.com/uk
- Allwinner H3 Quad-core Cortex-A7
- Mali400MP2 GPU
- 512MB DDR3 (shared with GPU)
- TF card (need mod) / MMC card 4Gb
- No Ethernet RJ45
- Only One USB 2.0 HOST

port of
d6b60abc2f
2021-10-01 19:40:03 +02:00