[Zrouter-src] ZRouter.org: push to ZRouter .hgignore vendor/Makefile

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Sep 20 09:10:41 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/779a60491198
changeset: 435:779a60491198
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Thu Sep 20 12:13:48 2012 +0300
description:
Introduce space for vendor tuning.
Now you can add:
vendor/${VENDOR_NAME}/vendor.mk - to do last tune per vendor
vendor/${VENDOR_NAME}/files - to store additional files to rootfs
vendor/${VENDOR_NAME}/${DEV_NAME}/board.mk - board tune
vendor/${VENDOR_NAME}/${DEV_NAME}/files - files for board
Everything except vendor/Makefile ignored by .hgignore rules.
So that place is special for things which made locally and must not to go upstream.

diffstat:

 .hgignore       |   2 +-
 vendor/Makefile |  39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletions(-)

diffs (52 lines):

diff -r f98546ddb422 -r 779a60491198 .hgignore
--- a/.hgignore	Thu Sep 20 00:42:15 2012 +0300
+++ b/.hgignore	Thu Sep 20 12:13:48 2012 +0300
@@ -1,3 +1,3 @@
 build_profiles
 Makefile\.local\.opts
-
+vendor\/(?!Makefile$)
diff -r f98546ddb422 -r 779a60491198 vendor/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/Makefile	Thu Sep 20 12:13:48 2012 +0300
@@ -0,0 +1,39 @@
+TARGET_DEVICE?="NONE"
+TARGET_VENDOR?="NONE"
+
+.if !empty(TARGET_PAIR)
+TARGET_VENDOR=${TARGET_PAIR:C/\/.*//}
+TARGET_DEVICE=${TARGET_PAIR:C/.*\///}
+.endif
+
+#### Per vendor
+.if exists(${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/)
+
+.if exists(${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/files)
+# Vendor wide files
+ROOTFS_COPY_DIRS+=${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/files
+.endif # exists(vendor/TARGET_VENDOR/files)
+
+# Vendor wide tunables
+.if exists(${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/vendor.mk)
+.include "${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/vendor.mk"
+.endif # exists(vendor/TARGET_VENDOR/vendor.mk)
+
+#### Per device
+.if exists(${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/${TARGET_DEVICE}/)
+TARGET_VENDOR_BOARDDIR= ${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/${TARGET_DEVICE}
+
+# Vendor files for exact device.
+.if exists(${TARGET_VENDOR_BOARDDIR}/files)
+# Will be processed after soc/boards/profiles defined
+ROOTFS_COPY_DIRS+=${TARGET_VENDOR_BOARDDIR}/files
+.endif # exists(TARGET_VENDOR_BOARDDIR/files)
+
+# Vendor device tunables
+.if exists(${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/vendor.mk)
+.include "${ZROUTER_ROOT}/vendor/${TARGET_VENDOR}/vendor.mk"
+.endif # exists(vendor/TARGET_VENDOR/vendor.mk)
+
+.endif # exists DEVICE directory.
+
+.endif # exists VENDOR directory.
\ No newline at end of file


More information about the Zrouter-src mailing list