summaryrefslogtreecommitdiff
path: root/include/package.mk
diff options
context:
space:
mode:
authorRalph Hempel <ralph.hempel@lantiq.com>2009-05-31 11:35:13 +0000
committerRalph Hempel <ralph.hempel@lantiq.com>2009-05-31 11:35:13 +0000
commit3dc92527a315a06fadb8766c8891f67400976f08 (patch)
tree008b2a2718defca413982d3c50830a3d52c39cc6 /include/package.mk
parent69fbe5c3b04e029e5ea96a66ddbd0c64554aac9a (diff)
downloadmtk-20170518-3dc92527a315a06fadb8766c8891f67400976f08.zip
mtk-20170518-3dc92527a315a06fadb8766c8891f67400976f08.tar.gz
mtk-20170518-3dc92527a315a06fadb8766c8891f67400976f08.tar.bz2
add package source path override - use external source tree instead of source ball - the external package source tree will be included as symlink - make package/<name>/clean will delete the symlink instead of whole source tree - usefull in conjunction with external SCM like ClearCase - package-version-override.mk has to be included before package.mk
SVN-Revision: 16227
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index 79e1f14..a351661 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -48,6 +48,17 @@ ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),)
endif
endif
+ifeq ($(CONFIG_$(PKG_NAME)_USE_CUSTOM_SOURCE_DIR),y)
+# disable load stage
+PKG_SOURCE_URL:=
+# add hook to install a link to customer source path of dedicated package
+Hooks/Prepare/Pre += prepare_custom_source_directory
+# define empty default action
+define Build/Prepare/Default
+ @:
+endef
+endif
+
define Download/default
FILE:=$(PKG_SOURCE)
URL:=$(PKG_SOURCE_URL)