mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-23 21:46:14 +00:00
fbb924abff
In a pristine build, these directories are created as dependencies of the tools subdir compile, however this step never runs when the tools compile stamp already exists. Since commit ed6ba2801c0a ("tools: keep stamp file in $(STAGING_DIR_HOST)"), this will happen after `make clean`: $(STAGING_DIR) has been deleted, but the tools stamp still exists, so the next build will fail because $(STAGING_DIR) has not been set up correctly. Fix builds after `make clean` by adding the preparation as dependencies for the target and package directories as well. Fixes: ed6ba2801c0a ("tools: keep stamp file in $(STAGING_DIR_HOST)") Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
31 lines
931 B
Makefile
31 lines
931 B
Makefile
#
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
curdir:=target
|
|
|
|
$(curdir)/subtargets:=install
|
|
$(curdir)/builddirs:=linux sdk imagebuilder toolchain llvm-bpf
|
|
$(curdir)/builddirs-default:=linux
|
|
$(curdir)/builddirs-install:=\
|
|
linux \
|
|
$(if $(CONFIG_SDK),sdk) \
|
|
$(if $(CONFIG_IB),imagebuilder) \
|
|
$(if $(CONFIG_MAKE_TOOLCHAIN),toolchain) \
|
|
$(if $(CONFIG_SDK_LLVM_BPF),llvm-bpf)
|
|
|
|
$(curdir)/sdk/install:=$(curdir)/linux/install
|
|
$(curdir)/imagebuilder/install:=$(curdir)/linux/install
|
|
|
|
$(curdir)//compile = $(STAGING_DIR)/.prepared $(BIN_DIR)
|
|
|
|
$(eval $(call stampfile,$(curdir),target,prereq,.config))
|
|
$(eval $(call stampfile,$(curdir),target,compile,$(TMP_DIR)/.build))
|
|
$(eval $(call stampfile,$(curdir),target,install,$(TMP_DIR)/.build))
|
|
|
|
$($(curdir)/stamp-install): $($(curdir)/stamp-compile)
|
|
|
|
$(eval $(call subdir,$(curdir)))
|