diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-01-07 21:01:44 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-01-07 21:01:44 +0100 |
commit | 9955ac620069f4a6144dc77a818919564cb9a3d5 (patch) | |
tree | bc41fac07b461365b4ee6afa1861833aa2d51441 /mk/linux.mk | |
parent | 616d963043ef928dc12423302b1c7454a43642cd (diff) | |
download | embtoolkit-9955ac620069f4a6144dc77a818919564cb9a3d5.tar.gz embtoolkit-9955ac620069f4a6144dc77a818919564cb9a3d5.tar.bz2 embtoolkit-9955ac620069f4a6144dc77a818919564cb9a3d5.tar.xz |
Build system: create macros to access various internal .dotfile and use of them
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/linux.mk')
-rw-r--r-- | mk/linux.mk | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/mk/linux.mk b/mk/linux.mk index 224a70c..7155437 100644 --- a/mk/linux.mk +++ b/mk/linux.mk @@ -57,12 +57,12 @@ define __embtk_install_linux_headers $(call embtk_decompress_pkg,linux) $(MAKE) -C $(LINUX_BUILD_DIR) $(LINUX_MAKE_OPTS) \ INSTALL_HDR_PATH=$(embtk_sysroot)/usr headers_install - touch $(call __embtk_pkg_dotinstalled_f,linux_headers) + $(call __embtk_setinstalled_pkg,linux_headers) $(call __embtk_pkg_gen_dotkconfig_f,linux_headers) endef define embtk_install_linux_headers - [ -e $(call __embtk_pkg_dotinstalled_f,linux_headers) ] || \ - $(__embtk_install_linux_headers) + $(if $(call __embtk_pkg_installed-y,linux_headers),, + $(__embtk_install_linux_headers)) endef # @@ -107,7 +107,7 @@ define __embtk_install_linux cp $(CONFIG_EMBTK_LINUX_DOTCONFIG) $(__embtk_linux_srcdir)/.config $(MAKE) -C $(__embtk_linux_srcdir) $(LINUX_MAKE_OPTS) silentoldconfig $(MAKE) -C $(__embtk_linux_srcdir) $(LINUX_MAKE_OPTS) $(J) - touch $(call __embtk_pkg_dotinstalled_f,linux) + $(call __embtk_setinstalled_pkg,linux) $(call __embtk_pkg_gen_dotkconfig_f,linux) endef @@ -126,12 +126,9 @@ endef # clean target and macros # define embtk_cleanup_linux - if [ -d $(LINUX_BUILD_DIR) ] && \ - [ -e $(call __embtk_pkg_dotinstalled_f,linux_headers) ]; then \ - rm -rf $(call __embtk_pkg_dotinstalled_f,linux_headers); \ - fi + [ -d $(LINUX_BUILD_DIR) ] && $(call __embtk_unsetinstalled_pkg,linux) endef define embtk_cleanup_linux_headers - $(embtk_cleanup_linux) + [ -d $(LINUX_BUILD_DIR) ] && $(call __embtk_unsetinstalled_pkg,linux_headers) endef |