Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0dbeb37 authored by Colin Cross's avatar Colin Cross
Browse files

Always define sdk_addon as phony

dist-write-files will add dist targets to the sdk_addon target,
but the sdk_addon target is not declared as phony when building
with mm (ONE_SHOT_MAKEFILE set), causing:
build/make/core/main.mk:1495: error: writing to readonly directory: "sdk_addon"

Always define sdk_addon as phony even if ONE_SHOT_MAKEFILE is set.

Bug: 118144231
Test: mm
Change-Id: I99d14a98a7597ebd694c765f94b0d6f4486860dc
parent 17c9e2a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ifndef ONE_SHOT_MAKEFILE

.PHONY: sdk_addon

ifndef ONE_SHOT_MAKEFILE

# If they didn't define PRODUCT_SDK_ADDON_NAME, then we won't define
# any of these rules.
addon_name := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SDK_ADDON_NAME))