mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Problems with own get rule
@ 2022-07-29 10:37 Andreas Helmcke
  2022-07-29 10:48 ` Michael Olbrich
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Helmcke @ 2022-07-29 10:37 UTC (permalink / raw)
  To: ptxdist

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. 

Thanks, 
  Andreas

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)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-29 12:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 10:37 [ptxdist] Problems with own get rule Andreas Helmcke
2022-07-29 10:48 ` Michael Olbrich
2022-07-29 10:54   ` Michael Olbrich
2022-07-29 11:23     ` Andreas Helmcke
2022-07-29 12:02       ` Michael Olbrich
2022-07-29 12:53         ` Andreas Helmcke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox