Skip to content
Snippets Groups Projects
Unverified Commit 78054cdd authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

scripts: target_config_lib: fix inclusion of device-specific packages from site.mk

Fixes: 071cf7b2 ("Switch to Lua for target definitions")
parent b113e0f5
No related branches found
No related tags found
No related merge requests found
...@@ -16,15 +16,15 @@ return function(funcs) ...@@ -16,15 +16,15 @@ return function(funcs)
end end
local function site_packages(profile) local function site_packages(image)
return lib.exec_capture_raw(string.format([[ return lib.exec_capture_raw(string.format([[
MAKEFLAGS= make print PROFILE=%s --no-print-directory -s -f - <<'END_MAKE' MAKEFLAGS= make print _GLUON_IMAGE_=%s --no-print-directory -s -f - <<'END_MAKE'
include $(GLUON_SITEDIR)/site.mk include $(GLUON_SITEDIR)/site.mk
print: print:
echo -n '$(GLUON_$(PROFILE)_SITE_PACKAGES)' echo -n '$(GLUON_$(_GLUON_IMAGE_)_SITE_PACKAGES)'
END_MAKE END_MAKE
]], lib.escape(profile))) ]], lib.escape(image)))
end end
lib.include('generic') lib.include('generic')
...@@ -68,7 +68,7 @@ END_MAKE ...@@ -68,7 +68,7 @@ END_MAKE
for _, pkg in ipairs(dev.options.packages or {}) do for _, pkg in ipairs(dev.options.packages or {}) do
handle_pkg(pkg) handle_pkg(pkg)
end end
for pkg in string.gmatch(site_packages(profile), '%S+') do for pkg in string.gmatch(site_packages(dev.image), '%S+') do
handle_pkg(pkg) handle_pkg(pkg)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment