diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-07-26 14:47:34 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-08-01 09:24:26 +0200 |
commit | 4afd352c3663332a7b0e174766706a9b700bc156 (patch) | |
tree | dd990dccde6925f9e703838d73020173ed465936 /scripts/lib/ptxd_lib_dgen.awk | |
parent | 3993c5ae5d40d6f1d88ba3bf6c070256aaa39766 (diff) | |
download | ptxdist-4afd352c3663332a7b0e174766706a9b700bc156.tar.gz ptxdist-4afd352c3663332a7b0e174766706a9b700bc156.tar.xz |
ptxdist: implement image specific nfsroot
For the simple use-case (the rootfs contains all packages) the normal
nfsroot works well. However, this is not useful to work with root
filesystems that contain only a subset of all packages.
With this change, if <IMAGE>_NFSROOT can be set to 'YES' then
<platformdir>/nfsroot/<image> will be filled with the files from only the
packages that are part of this image.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index bbf8aaddd..aeea3a8f0 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -423,6 +423,10 @@ function write_deps_pkg_active_image(this_PKG, this_pkg, prefix) { print "ifneq ($(strip $(" this_PKG "_PKGS)),)" > DGEN_DEPS_POST print "$(" this_PKG "_IMAGE):" " \ $(STATEDIR)/host-$(call remove_quotes,$(PTXCONF_HOST_PACKAGE_MANAGEMENT)).install.post" > DGEN_DEPS_POST + print "ifeq ($(strip $(" this_PKG "_NFSROOT)),YES)" > DGEN_DEPS_POST + print "$(foreach pkg,$(" this_PKG "_PKGS),$(eval $(PTX_MAP_TO_PACKAGE_$(pkg))_NFSROOT_DIRS += " \ + "$(PTXDIST_PLATFORMDIR)/nfsroot/" this_pkg "))" > DGEN_DEPS_POST + print "endif" > DGEN_DEPS_POST print "endif" > DGEN_DEPS_POST } |