From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Subject: [PATCH v6 5/5] Build pylibfdt as part of the normal build process Date: Thu, 16 Feb 2017 21:47:59 -0700 Message-ID: <20170217044759.20974-6-sjg@chromium.org> References: <20170217044759.20974-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=bLF2+m60+f2YVIJcpWIHz1Qk9Zocs7ieEE4pVXy9bHE=; b=lJupXoNmQ1EsvCOCf3dQbPgXOn4JSXrNaRggEaYFilzkTBjQF/gXa8hYMQo8WBjgDo pj7Si5uh6v47BVkRHLtD3D1rOpP+YbFa56Mw/puqs7Rylrb5LDfq8+R0ObN3bDS6hMhJ YIN7+PYzEBj8DnmYHBteI/ELYlP6pqD3Ggh9YTLO+wYqqLgmmPDoxDBSweQoDhS3qCy/ mgyH8ngJ26XvU7crEM7Wj6gicXtc+ttTYssPahnL1kEHzKlLU5Laxi7CFsYkDFK2niM9 30oGYAXbrCz67aaQizQjDpgR+rU3wtq5X7vwyZyFndnLQxhJhbi0aIETB3iLFz8Onwg3 CYIw== In-Reply-To: <20170217044759.20974-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 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