mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] local rule makefile include $(PTXDIST_TOPDIR)/rules/...
@ 2018-08-03  8:25 Jon Ringle
  2018-08-03 16:52 ` Jon Ringle
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Ringle @ 2018-08-03  8:25 UTC (permalink / raw)
  To: ptxdist

Hi,

As a follow up to my patch "Detect changes in package patch series",
I'd like to be able to further this by having the ability to maintain
my own patch series for a package without having to be forced to also
maintain the package's rules makefile as well. To try to achieve this
I tried having the following content in my local rule makefile:

~/git/rootfs$ cat rules/systemd.make
SYSTEMD_SERIES_SHA256   := # I want to maintain only my patch series locally...
include $(PTXDIST_TOPDIR)/rules/systemd.make

Unfortunately, this does not work as desired:
~/git/rootfs$ ~/git/ptxdist/bin/ptxdist --force extract systemd

-----------------------
target: systemd.extract
-----------------------

patchin: no patches found
finished target systemd.extract

In fact, all targets given to this package don't behave:
~/git/rootfs$ ~/git/ptxdist/bin/ptxdist --force targetinstall systemd

----------------------------------
target: systemd.targetinstall.post
----------------------------------

finished target systemd.targetinstall.post

Any ideas on either other approaches to tackle this problem or
direction on where to start hacking at the ptxdist code to make my
approach workable?

Regards,
-Jon

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] local rule makefile include $(PTXDIST_TOPDIR)/rules/...
  2018-08-03  8:25 [ptxdist] local rule makefile include $(PTXDIST_TOPDIR)/rules/ Jon Ringle
@ 2018-08-03 16:52 ` Jon Ringle
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Ringle @ 2018-08-03 16:52 UTC (permalink / raw)
  To: ptxdist

Hi,

I was able to solve my problem below :)
I defined my local rules file as follows in order to "fool" the
ptxd_is_pkg_makefile() function in
scrips/lib/ptxd_make_world_check_src.sh:

~/git/rootfs$ cat rules/systemd.make
#
# We provide this package
#
OVERLAY_PACKAGES-$(PTXCONF_SYSTEMD) += systemd

SYSTEMD_SERIES_SHA256   :=
0560688f87a3232377c24263245e401629da11de366e52e40275e142a5024268
include $(PTXDIST_TOPDIR)/rules/systemd.make

The choice of "OVERLAY_" prefix was arbitrary. It doesn't matter what
the prefix is before the *PACKAGES- line is as long as it is
"^[A-Z_]*" and not the same as the one found in
$(PTXDIST_TOPDIR)/rules/*.make file

-Jon

On Fri, Aug 3, 2018 at 4:25 AM Jon Ringle <jon@ringle.org> wrote:
>
> Hi,
>
> As a follow up to my patch "Detect changes in package patch series",
> I'd like to be able to further this by having the ability to maintain
> my own patch series for a package without having to be forced to also
> maintain the package's rules makefile as well. To try to achieve this
> I tried having the following content in my local rule makefile:
>
> ~/git/rootfs$ cat rules/systemd.make
> SYSTEMD_SERIES_SHA256   := # I want to maintain only my patch series locally...
> include $(PTXDIST_TOPDIR)/rules/systemd.make
>
> Unfortunately, this does not work as desired:
> ~/git/rootfs$ ~/git/ptxdist/bin/ptxdist --force extract systemd
>
> -----------------------
> target: systemd.extract
> -----------------------
>
> patchin: no patches found
> finished target systemd.extract
>
> In fact, all targets given to this package don't behave:
> ~/git/rootfs$ ~/git/ptxdist/bin/ptxdist --force targetinstall systemd
>
> ----------------------------------
> target: systemd.targetinstall.post
> ----------------------------------
>
> finished target systemd.targetinstall.post
>
> Any ideas on either other approaches to tackle this problem or
> direction on where to start hacking at the ptxdist code to make my
> approach workable?
>
> Regards,
> -Jon

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2018-08-03 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-03  8:25 [ptxdist] local rule makefile include $(PTXDIST_TOPDIR)/rules/ Jon Ringle
2018-08-03 16:52 ` Jon Ringle

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