From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 29 Jul 2022 12:54:25 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oHNdR-003Uqq-EI for lore@lore.pengutronix.de; Fri, 29 Jul 2022 12:54:25 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oHNdQ-0007Po-MA; Fri, 29 Jul 2022 12:54:24 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHNdF-0007Pa-Hd; Fri, 29 Jul 2022 12:54:13 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oHNdF-0006l8-8f; Fri, 29 Jul 2022 12:54:13 +0200 Date: Fri, 29 Jul 2022 12:54:13 +0200 From: Michael Olbrich To: Andreas Helmcke , ptxdist@pengutronix.de Message-ID: <20220729105413.GD20240@pengutronix.de> Mail-Followup-To: Andreas Helmcke , ptxdist@pengutronix.de References: <418570e2-7fbd-f917-3cad-98e52247d275@ela-soft.com> <20220729104859.GC20240@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220729104859.GC20240@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] Problems with own get rule X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Fri, Jul 29, 2022 at 12:48:59PM +0200, Michael Olbrich wrote: > On Fri, Jul 29, 2022 at 12:37:50PM +0200, Andreas Helmcke wrote: > > Hello, > > > > i have defined my own get rule to fetch some sources from svn. I did not use the buildin svn support because: > > 1. there are different svn targets which must get checked out to specific directories > > 2. i want to use tags, not revision numbers > > > > This works pretty well, there is only one problem. > > > > After ptxdist menuconfig is called to change the version number, the compile step fails with missing directory because the get rule wont get called. It should, since the source directory does not exists (the directory name contains the version (tag) name). > > > > Any advice is appreciated. > > Which PTXdist version? I think with a current version, foo.get should be > called whenever the value of $(FOO) changes. It's only used indirectly via FOO_SOURCE. Try setting: FOO_SOURCE := $(FOO_SRC_DIR) Regards, Michael > > The make file has this rules: > > > > > # > > > # We provide this package > > > # > > > PACKAGES-$(PTXCONF_FOO) += foo > > > > > > # > > > # Paths and names > > > # > > > FOO_VERSION := $(call ptx/config-version, PTXCONF_FOO) > > > FOO_MD5 := > > > FOO := foo-$(FOO_VERSION) > > > FOO_SRC_DIR := $(PTXDIST_WORKSPACE)/svn_src/$(FOO) > > > FOO_URL := lndir://$(FOO_SRC_DIR) > > > FOO_DIR := $(BUILDDIR)/$(FOO) > > > FOO_LICENSE := unknown > > > > > > FOO_SVN_BASE_URL := \ > > > https://subversion.company.com/entwicklung/foo_bar/foo/tags/$(FOO_VERSION) > > > > > > # ---------------------------------------------------------------------------- > > > # Get > > > # ---------------------------------------------------------------------------- > > > > > > $(STATEDIR)/foo.get: > > > @$(call targetinfo) > > > @$(call clean, $(FOO_SRC_DIR)) > > > @svn export \ > > > $(FOO_SVN_BASE_URL)/foo/phyCard-release $(FOO_SRC_DIR)/foo/phyCard-release > > > @svn export \ > > > $(FOO_SVN_BASE_URL)/foo/src $(FOO_SRC_DIR)/foo/src > > > @$(call touch) > > > > > > > > > # ---------------------------------------------------------------------------- > > > # Extract > > > # ---------------------------------------------------------------------------- > > > > > > $(STATEDIR)/foo.extract: > > > @$(call targetinfo) > > > @$(call clean, $(FOO_DIR)) > > > @$(call extract, FOO) > > > @$(call patchin, FOO) > > > @$(call touch) > > > > > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |