mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
build: make sure that $(STAGING_DIR_IMAGE) exists
Call 'mkdir -p $(STAGING_DIR_IMAGE)' before trying to store files in this potentially non-existing folder. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
644175c29c
commit
2f14c17501
@ -53,6 +53,7 @@ define Build/append-image-stage
|
|||||||
cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta"
|
cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta"
|
||||||
fwtool -s /dev/null -t "$@.stripmeta" || :
|
fwtool -s /dev/null -t "$@.stripmeta" || :
|
||||||
fwtool -i /dev/null -t "$@.stripmeta" || :
|
fwtool -i /dev/null -t "$@.stripmeta" || :
|
||||||
|
mkdir -p "$(STAGING_DIR_IMAGE)"
|
||||||
dd if="$@.stripmeta" of="$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1)"
|
dd if="$@.stripmeta" of="$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1)"
|
||||||
dd if="$@.stripmeta" >> "$@"
|
dd if="$@.stripmeta" >> "$@"
|
||||||
rm "$@.stripmeta"
|
rm "$@.stripmeta"
|
||||||
|
Loading…
Reference in New Issue
Block a user