Commit Graph

32991 Commits

Author SHA1 Message Date
MilhouseVH
e08407ce82 proftpd: incorrect $BUILD usage 2019-12-31 11:26:49 +01:00
Andre Heider
50e872d770 kodi: use -DFFMPEG_PATH
There's no need to pass the path to the build folder, use the path to
the installation instead.

From kodi's FindFFMPEG.cmake:
WARNING: this option is for developers as it will _disable ffmpeg version
checks_! Consider using FFMPEG_PATH instead, which _does_ check library
versions

Before:
-- Found FFMPEG: <snip>/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr (found version "undef")

After:
-- Found FFMPEG: <snip>/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include (found version "4.0")
2019-12-31 11:26:49 +01:00
Andre Heider
14cf8f3842 tvheadend42: use the installed headers
libhdhomerun installs the required headers, there's no need to point to its
build directory.
2019-12-31 11:26:49 +01:00
Andre Heider
b86cffe84a libshairplay: use the installed headers
Avahi installs the required headers, there's no need to point to its
build directory.
2019-12-31 11:26:49 +01:00
Andre Heider
3af8801a01 dosfstools: stub configure_init()
There's no point in configuring if not building.
2019-12-31 11:26:49 +01:00
Andre Heider
8e4663912a build: move install dirs out of the build dir
Instead of cluttering $BUILD we now have
- $BUILD/build         sources and builds of packages
- $BUILD/install_pkg   installed packages
- $BUILD/install_init  installed packages for initramfs
2019-12-31 11:26:49 +01:00
Andre Heider
61af0490ef image: don't fish out kernel files out of its build dir
Install the files required by $SCRIPTS/image to a hidden directory. That
way, the files won't get copied to the system filesystem, but the script
can access them without requiring access to the build directory,
2019-12-31 11:26:49 +01:00
Andre Heider
af26416f08 cups: disable installing to sysroot 2019-12-31 11:26:49 +01:00
Andre Heider
db4f6abed7 net-snmp: disable installing to sysroot 2019-12-31 11:26:49 +01:00
Andre Heider
8b3b1d8cc8 ffmpegx: disable installing to sysroot
There's no need to use a hidden directory anymore.
2019-12-31 11:26:49 +01:00
Andre Heider
93c1d6fc62 mariadb: disable installing to sysroot
There's no need to use a hidden directory anymore or overwrite the default
make install target.
2019-12-31 11:26:49 +01:00
Andre Heider
1dffafae2a build: add a "sysroot" build flag
Some addon dependencies do this locally on their own. With this, these
packages can now use the standard makeinstall() functions and access build
artifacts using get_install_dir() without polluting the sysroot folder.
2019-12-31 11:26:49 +01:00
Andre Heider
d31c44664c build: clean usr/local/ on packages too
Some packages use configure_target() but don't set the /usr prefix.
2019-12-31 11:26:49 +01:00
Andre Heider
912a91619b build: don't wipe devel files from packages, just don't install them
With the upcoming usage of the standard install_pkg folder for addon
dependencies, the devel files need to be accessible, e.g. ffmpegx for
tvheadend.

So don't wipe them from the package install folder, just skip copying
them to the image.
2019-12-31 11:26:49 +01:00
Andre Heider
629ca9dd61 u-boot: this is not a kernel package
Remove PKG_IS_KERNEL_PKG since this is not building kernel modules.
Add the kernel toolchain as dependency instead.
2019-12-31 11:26:49 +01:00
Andre Heider
78c1582d3a atf: this is not a kernel package
Remove PKG_IS_KERNEL_PKG since this is not building kernel modules.
Add the kernel toolchain as dependency instead.
2019-12-31 11:26:49 +01:00
Andre Heider
b9c9046654 linux: merge post_install() into makeinstall_target()
$PKG_BUILD, a build time variable, is accessed in post_install(), which is an
install time function. Move it, so the regdb files are copied in a build time
function instead.
2019-12-31 11:26:49 +01:00
Andre Heider
4197b75c8e build: include initramfs:init in the build plan
Now with the dependencies in initramfs:init, we can include it in the
build plan to parallalize it. But just build them there, the kernel package
keeps installing them.
2019-12-31 11:26:49 +01:00
Andre Heider
f0638817a2 linux: depend on all initramfs dependencies, not just busybox's
The initramfs in embedded, so rebuild if it changes.
2019-12-31 11:26:49 +01:00
Andre Heider
6e0d4e4ca2 initramfs: move all :init dependencies to initramfs:init
This allows us to automatically add them to PKG_NEED_UNPACK and add
further logic based on initramfs:init.
2019-12-31 11:26:49 +01:00
Andre Heider
408fce38ab initramfs: fix description 2019-12-31 11:26:49 +01:00
Andre Heider
ab4e3a3256 linux: ensure that the initramfs is always complete
The build target calls the install script, and this short circuits the
image/install/stamp logic. Wipe the initramfs/:init install stamps along
$BUILD/initramfs to ensure everything gets installed when creating the
ramdisk for the kernel.
2019-12-31 11:26:49 +01:00
Andre Heider
ae663c98e9 build: fix calculate_stamp() for multiple corner cases
- follow symlinks (as used by RPi/Slice)
- don't include hidden files like vi swap files (lol)
- remove duplicates (like $LINUX_DEPENDS for linux itself)
- sort by filename, not by hash
- don't use one sha256sum process per file, use xargs to pass all files to
  one process.
2019-12-31 11:26:49 +01:00
Andre Heider
b56c0f0619 build: add missing build stamp input data
Always include project specific package files
(e.g. projects/Amlogic/packages/systemd).
2019-12-31 11:26:49 +01:00
Andre Heider
3c8862a701 build: add and use get_install_dir()
Don't hardcode get_build_dir()/.install_pkg in multiple places.
2019-12-31 11:26:49 +01:00