title: buildroot package from local source with snapshots
body: <p>I want to fork buildroot, add a custom package, add the package's source directly in-tree, and have buildroot use the in-tree source to build the custom package. I've done that, following <a href="http://buildroot.uclibc.org/downloads/manual/manual.html#adding-packages" rel="nofollow noreferrer">chapter 17 of the buildroot user manual</a>, but <strong>buildroot doesn't seem to be picking up local changes that I've made</strong>.</p>
  
  <p>For example, I built the entire image, and it also built my custom application. Then I went into the source for my custom application and added an intentional syntax error -- but then I ran make again and it happily generated an image <em>using the old version of my custom app</em>.</p>
  
  <p><strong>How do I tell buildroot to look for local source modifications, even if it already has a cached build of the package with a matching version?</strong></p>
  
  <p>These are the new files which I have added to my buildroot fork:</p>
  
  <pre><code>buildroot/
    package/
      customapp/
        customapp.mk
        Config.in
    customapp/
      configure.ac
      Makefile.am
      README
      src/
        main.c
        Makefile.am
  </code></pre>
  
  <p>(I also edited <code>buildroot/package/Config.in</code> so that it sources the <code>buildroot/package/customapp/Config.in</code> file. All the Config.in stuff is just a simple boolean to enable customapp, and they work fine, so I'll omit them from this question.)</p>
  
  <p>Here are the contents of the build-related files:</p>
  
  <blockquote>
    <p>buildroot/package/customapp/customapp.mk</p>
  </blockquote>
  
  <pre><code>CUSTOMAPP_VERSION = 0.1
  CUSTOMAPP_SITE = customapp
  CUSTOMAPP_SITE_METHOD = local
  CUSTOMAPP_AUTORECONF = YES
  
  $(eval $(autotools-package))
  </code></pre>
  
  <blockquote>
    <p>buildroot/customapp/configure.ac</p>
  </blockquote>
  
  <pre><code>AC_INIT([customapp], [0.1], [name@email.tld])
  AM_INIT_AUTOMAKE([-Wall -Werror foreign])
  AC_PROG_CC
  AC_CONFIG_HEADERS([config.h])
  AC_CONFIG_FILES([
   Makefile
   src/Makefile
  ])
  AC_OUTPUT
  </code></pre>
  
  <blockquote>
    <p>buildroot/customapp/Makefile.am</p>
  </blockquote>
  
  <pre><code>SUBDIRS = src
  dist_doc_DATA = README
  </code></pre>
  
  <blockquote>
    <p>buildroot/customapp/src/Makefile.am</p>
  </blockquote>
  
  <pre><code>bin_PROGRAMS = customapp
  customapp_SOURCES = main.c
  </code></pre>