From f1cc7f0c31fbc46cdf53f1918858f305c59a3095 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Thu, 18 Jul 2019 19:03:09 +0300 Subject: [PATCH] image.in: add include-once check This is following mkimage's approach; better late than never. --- image.in/functions.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image.in/functions.mk b/image.in/functions.mk index 79b0a162..7c247f23 100644 --- a/image.in/functions.mk +++ b/image.in/functions.mk @@ -1,6 +1,9 @@ ifneq (clean,$(MAKECMDGOALS)) ifneq (distclean,$(MAKECMDGOALS)) +ifndef INCLUDED_FUNCTIONS_MK +INCLUDED_FUNCTIONS_MK = 1 + # globals PKGDIR ?= $(GLOBAL_BUILDDIR)/pkg @@ -49,3 +52,4 @@ branding = $(and $(1),^branding-$(BRANDING)-($(call list2re,$(1)))$$) endif endif +endif