diff options
Diffstat (limited to 'core/mk')
-rw-r--r-- | core/mk/buildsystem.mk | 8 | ||||
-rw-r--r-- | core/mk/help.mk | 18 | ||||
-rw-r--r-- | core/mk/macros.mk | 17 | ||||
-rw-r--r-- | core/mk/rootfs/rootfs.mk | 9 |
4 files changed, 31 insertions, 21 deletions
diff --git a/core/mk/buildsystem.mk b/core/mk/buildsystem.mk index bf34298..16a045f 100644 --- a/core/mk/buildsystem.mk +++ b/core/mk/buildsystem.mk @@ -88,11 +88,17 @@ __embtk_mk_startbuild-y := __startbuild_msg __embtk_mk_startbuild-y += toolchain_install __embtk_mk_startbuild-$(CONFIG_EMBTK_BUILD_LINUX_KERNEL) += linux_install __embtk_mk_startbuild-$(CONFIG_EMBTK_HAVE_ROOTFS) += rootfs_build -__embtk_mk_startbuild-y += successful_build +__embtk_mk_startbuild-y += __endbuild_msg __startbuild_msg: $(__embtk_mk_print_selectedfeatures) +__endbuild_msg: + $(call embtk_pinfo,"Selected features built successfully...") + $(help_toolchain_summary) + $(help_rootfs_summary) + $(help_successful_build) + startbuild: $(__embtk_mk_startbuild-y) @: diff --git a/core/mk/help.mk b/core/mk/help.mk index e826661..18f07ea 100644 --- a/core/mk/help.mk +++ b/core/mk/help.mk @@ -1,6 +1,6 @@ ################################################################################ # EmbToolkit -# Copyright(C) 2011 Abdoulaye Walsimou GAYE. +# Copyright(C) 2011-2014 Abdoulaye Walsimou GAYE. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -69,19 +69,3 @@ help: @echo " This should be used after configuration and if" @echo " you want to do an offline build." @echo - -# Successful build of EmbToolkit message -successful_build: - $(help_toolchain_summary) - $(help_rootfs_summary) - $(call embtk_echo_blue," ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ") - $(call embtk_echo_blue,"| Embedded systems Toolkit |") - $(call embtk_echo_blue," ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ") - $(call embtk_echo_blue,"We hope that EmbToolkit will be useful for your project !!!") - $(call embtk_echo_blue,"We will be happy to know it at embtk-users@embtoolkit.org") - @echo - $(call embtk_echo_blue,"Please report any bugs/suggestion at:") - $(call embtk_echo_blue," $(EMBTK_BUGURL)") - $(call embtk_echo_blue,"You can also visit the project web site at:") - $(call embtk_echo_blue," http://www.embtoolkit.org") - $(call embtk_echo_blue,$(__embtk_msg_h)) diff --git a/core/mk/macros.mk b/core/mk/macros.mk index 0ec78a9..6aeb8f9 100644 --- a/core/mk/macros.mk +++ b/core/mk/macros.mk @@ -139,6 +139,7 @@ define help_toolchain_summary $(call embtk_echo_blue," ~~~~~~~~~~~ ") $(call embtk_echo_blue,"| Toolchain |") $(call embtk_echo_blue," ~~~~~~~~~~~ ") + $(call embtk_echo_blue,"\tEmbToolkit : v$(EMBTK_VERSION)") $(call embtk_echo_blue,"\tArchitecture : $(LINUX_ARCH) ($(EMBTK_MCU_FLAG))") $(call embtk_echo_blue,"\tLinux kernel headers: linux-$(call __embtk_pkg_version,linux)") $(call embtk_echo_blue,"\tBinutils : binutils-$(call __embtk_pkg_version,binutils)") @@ -171,6 +172,20 @@ define help_rootfs_summary $(call embtk_echo_blue,"\tInitramfs : $(if $(CONFIG_EMBTK_ROOTFS_HAVE_INITRAMFS_CPIO),Yes,No)") $(call embtk_echo_blue,"\tsquashFS : $(if $(CONFIG_EMBTK_ROOTFS_HAVE_SQUASHFS),Yes,No)") $(call embtk_echo_blue,"\tJFFS2 : $(if $(CONFIG_EMBTK_ROOTFS_HAVE_JFFS2),Yes,No)") - $(call embtk_echo_blue,"\tRootFS location:") + $(call embtk_echo_blue,"\tImages location:") $(call embtk_echo_blue,"\t\`-->generated")) endef + +define help_successful_build + $(call embtk_echo_blue," ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ") + $(call embtk_echo_blue,"| Embedded systems Toolkit |") + $(call embtk_echo_blue," ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ") + $(call embtk_echo_blue,"We hope that EmbToolkit will be useful for your project !!!") + $(call embtk_echo_blue,"We will be happy to know it at embtk-users@embtoolkit.org") + @echo + $(call embtk_echo_blue,"Please report any bugs/suggestion at:") + $(call embtk_echo_blue," $(EMBTK_BUGURL)") + $(call embtk_echo_blue,"You can also visit the project web site at:") + $(call embtk_echo_blue," http://www.embtoolkit.org") + $(call embtk_echo_blue,$(__embtk_msg_h)) +endef diff --git a/core/mk/rootfs/rootfs.mk b/core/mk/rootfs/rootfs.mk index f616c2c..c8b05d4 100644 --- a/core/mk/rootfs/rootfs.mk +++ b/core/mk/rootfs/rootfs.mk @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE. +# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -183,9 +183,14 @@ __rootfs_prebuild_targets += __rootfs_components_install __rootfs_prebuild_targets += $(strip $(if $(CONFIG_EMBTK_TARGET_STRIPPED), \ __rootfs_components_strip)) +define __rootfs_build_end + $(call embtk_pinfo,"Selected root filesystems built successfully...") + $(if $(findstring rootfs_build,$(MAKECMDGOALS)),$(help_rootfs_summary)) +endef + rootfs_build: toolchain_install host_packages_build $(__rootfs_prebuild_targets) $(Q)$(__embtk_rootfs_fs_generate) - $(call embtk_pinfo,"Selected root filesystems built successfully!") + $(Q)$(__rootfs_build_end) else # Build of root file system not selected rootfs_build: |