summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-03-16 11:51:45 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2021-03-16 12:01:21 +0100
commit84f0d0abcd1b23c7e347bbe93a1c34094245bb9e (patch)
tree91661326c23ecf75dae3357b1bc60fb1d8726233 /configs
parentf0e6f489fe142fca4b1191c1307a42885b9fa96f (diff)
downloadDistroKit-84f0d0abcd1b23c7e347bbe93a1c34094245bb9e.tar.gz
DistroKit-84f0d0abcd1b23c7e347bbe93a1c34094245bb9e.tar.xz
v8a/firmware-imx: Ensure PKGDIR exists
This fixes: tar: DistroKit/platform-v8a/packages: Cannot open: No such file or directory tar: Error is not recoverable: exiting now make: *** [DistroKit/configs/platform-v8a/rules/firmware-imx.make:36: DistroKit/platform-v8a/state/firmware-imx.extract] Error 2 e.g. when running ptxdist extract firmware-imx in an unbuilt tree. Fixes: 2e2c4377dc08 ("i.MX8M: add firmware-imx 8.8") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'configs')
-rw-r--r--configs/platform-v8a/rules/firmware-imx.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/platform-v8a/rules/firmware-imx.make b/configs/platform-v8a/rules/firmware-imx.make
index b0efdb4..0eae435 100644
--- a/configs/platform-v8a/rules/firmware-imx.make
+++ b/configs/platform-v8a/rules/firmware-imx.make
@@ -33,6 +33,7 @@ FIRMWARE_IMX_SOURCE := $(SRCDIR)/$(FIRMWARE_IMX).$(FIRMWARE_IMX_SUFFIX)
$(STATEDIR)/firmware-imx.extract:
@$(call targetinfo)
+ @mkdir -p "$(PKGDIR)"
@dd if=$(FIRMWARE_IMX_SOURCE) bs=$(FIRMWARE_IMX_SKIP) skip=1 | tar xj -C $(PKGDIR)
@$(call touch)