From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Subject: [PATCH v7 5/5] Build pylibfdt as part of the normal build process Date: Tue, 21 Feb 2017 21:33:40 -0700 Message-ID: <20170222043340.17008-6-sjg@chromium.org> References: <20170222043340.17008-1-sjg@chromium.org> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VyqOcryI1hnAi7XEswAQFLMdpPqiQUAAl7f3MCGNR/Q=; b=Np5sfyGUtM+ZyjR4N0aix8To/YVUQBtKGZa73yl1/uh/bhVEtiwiyX+tcvkseeQ4eV MkIVisxsKQso5ZQs6vB8bhqMvYZB6diNSxbMQWazyucXLqhyBh56WZ392kfqdowC7WXe oYPUWpuL7yPv+mp3nVEYSFRROYqqfVN3Zl7WBabhY8DNEhXKwOd8LEgm0RofjZ458yUB 0zGaa4rTi7k8CrrAZCUDPPw62vN4OOfAVLTUOI89HWpA1APj1VKEsOwUS4w6CoVPPffB oAWUuRBGPobZHkLE0X7Qbwt3pZ/opUwgX0tge23O8TQV+crNokr7iNxgJWI9DOrPQ5tO ubNg== In-Reply-To: <20170222043340.17008-1-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Devicetree Compiler Cc: Benjamin Bimmermann , Ulrich Langenbach , David Gibson , Simon Glass Possibly this needs to be made optional. For now just hook it up. Signed-off-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: - Fix 'possible' typo Changes in v4: None Changes in v3: None Changes in v2: None Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c48210..4adba10 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,7 @@ BIN += fdtput SCRIPTS = dtdiff -all: $(BIN) libfdt +all: $(BIN) libfdt pylibfdt ifneq ($(DEPTARGETS),) @@ -203,6 +203,19 @@ dist: cat ../dtc-$(dtc_version).tar | \ gzip -9 > ../dtc-$(dtc_version).tar.gz + +# +# Rules for pylibfdt +# +PYLIBFDT_srcdir = pylibfdt +PYLIBFDT_objdir = pylibfdt + +include $(PYLIBFDT_srcdir)/Makefile.pylibfdt + +.PHONY: pylibfdt +pylibfdt: $(PYLIBFDT_objdir)/_libfdt.so + + # # Release signing and uploading # This is for maintainer convenience, don't try this at home. @@ -247,6 +260,7 @@ STD_CLEANFILES = *~ *.o *.$(SHAREDLIB_EXT) *.d *.a *.i *.s core a.out vgcore.* \ clean: libfdt_clean tests_clean @$(VECHO) CLEAN rm -f $(STD_CLEANFILES) + rm -f $(PYLIBFDT_CLEANFILES) rm -f $(VERSION_FILE) rm -f $(BIN) rm -f dtc-*.tar dtc-*.tar.sign dtc-*.tar.asc -- 2.11.0.483.g087da7b7c-goog