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

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Oct 2 12:41:52 UTC 2014


details:   http://zrouter.org/hg/zrouter//rev/fa8d9cab1b7a
changeset: 507:fa8d9cab1b7a
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Thu Oct 02 15:40:28 2014 +0300
description:
Move SoC vendor/model/revision and board vendor/model/revision into hints.
So it will not require special options in FreeBSD kernel config.

diffstat:

 Makefile |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (27 lines):

diff -r 500480b36885 -r fa8d9cab1b7a Makefile
--- a/Makefile	Thu Oct 02 15:37:20 2014 +0300
+++ b/Makefile	Thu Oct 02 15:40:28 2014 +0300
@@ -79,17 +79,15 @@
 .endif
 ZROUTER_FREEBSD_OBJDIR=${ZROUTER_OBJ}/tmp/${TARGET_ARCH_SUBDIR}/${FREEBSD_SRC_TREE}
 
-# XXX bad idea, because require changes to system code
-# Better to define it in hints, then fetch by KENV
-KERNCONF_OPTIONS+=	SOC_VENDOR=\\\"${SOC_VENDOR}\\\"
-KERNCONF_OPTIONS+=	SOC_MODEL=\\\"${SOC_CHIP}\\\"
+KERNEL_HINTS+=	hw.soc.vendor=\"${SOC_VENDOR}\"
+KERNEL_HINTS+=	hw.soc.model=\"${SOC_CHIP}\"
 .if defined(SOC_REVISION)
-KERNCONF_OPTIONS+=	SOC_REV=\\\"${SOC_REVISION}\\\"
+KERNEL_HINTS+=	hw.soc.revision=\"${SOC_REVISION}\"
 .endif
-KERNCONF_OPTIONS+=	DEVICE_VENDOR=\\\"${TARGET_VENDOR}\\\"
-KERNCONF_OPTIONS+=	DEVICE_MODEL=\\\"${TARGET_DEVICE}\\\"
+KERNEL_HINTS+=	hw.board.vendor=\"${TARGET_VENDOR}\"
+KERNEL_HINTS+=	hw.board.model=\"${TARGET_DEVICE}\"
 .if defined(BOARD_REVISION)
-KERNCONF_OPTIONS+=	DEVICE_REV=\\\"${BOARD_REVISION}\\\"
+KERNEL_HINTS+=	hw.board.revision=\"${BOARD_REVISION}\"
 .endif
 
 KERNCONF_OPTIONS+=	NO_SWAPPING


More information about the Zrouter-src mailing list