Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] disable downloaded source cache
@ 2013-02-13 16:14 Lionel Orry
  2013-02-13 22:42 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Lionel Orry @ 2013-02-13 16:14 UTC (permalink / raw)
  To: buildroot

Hi list,

I am experimenting with the BR2_ROOTFS_OVERLAY feature which works
great for me to add my overlay before image creation.

My overlay is versioned with git, and I would like however to allow
automatic synchronisation (pull or even clone, the repository is very
small) with my remote each time I simply do 'make'. The overlay
feature only copies a folder content, but does not allow updating the
source folder content from a site (I perfectly understand it is not
its purpose and the feature must be kept simple).

For now, here is how I did this:
- I set up BR2_ROOTFS_OVERLAY="$(XXX_OVERLAY_DIR)"
- I created a package 'xxx_overlay' with the following content:

package/xxx_overlay/xxx_overlay.mk:

#############################################################
#
# xxx_overlay
#
#############################################################
XXX_OVERLAY_VERSION = master
XXX_OVERLAY_SITE = git at myserver:filesystem_overlay.git
XXX_OVERLAY_SITE_METHOD = git
XXX_OVERLAY_INSTALL_STAGING = NO
XXX_OVERLAY_REDISTRIBUTE = NO

# erase the .tar.gz and all visible stamps at that time
define XXX_OVERLAY_BUILD_CMDS
    rm -f $(DL_DIR)/$(XXX_OVERLAY_SOURCE) $(wildcard $(@D)/.stamp_*)
endef

# erase the .stamp_built stamp to force the build step to happen next time
define XXX_OVERLAY_INSTALL_TARGET_CMDS
    rm -f $(@D)/.stamp_built
endef

$(eval $(generic-package))
#################### END OF FILE ##############################

Yes I know it is horrible. but it actually works, i.e. it processes
dependencies correctly to force the whole dependency chain: download,
extract, patch, build and install_target.

Is there a simple method to avoid the caching of the source code in
$(DL_DIR)/xxx_overlay-master.tar.gz and force the download and
extraction each time?

Thank for any hints,
Lionel

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

end of thread, other threads:[~2013-02-14  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 16:14 [Buildroot] disable downloaded source cache Lionel Orry
2013-02-13 22:42 ` Arnout Vandecappelle
2013-02-14  8:11   ` Lionel Orry
2013-02-14  8:32     ` Thomas Petazzoni

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