Index: /trunk/include/iprt/buildconfig.h
===================================================================
--- /trunk/include/iprt/buildconfig.h	(revision 33678)
+++ /trunk/include/iprt/buildconfig.h	(revision 33679)
@@ -83,4 +83,32 @@
 RTDECL(uint32_t)     RTBldCfgVersionBuild(void);
 
+/**
+ * Gets the build target name.
+ *
+ * @returns Read only build target string.
+ */
+RTDECL(const char *) RTBldCfgTarget(void);
+
+/**
+ * Gets the build target architecture name.
+ *
+ * @returns Read only build target architecture string.
+ */
+RTDECL(const char *) RTBldCfgTargetArch(void);
+
+/**
+ * Gets the build target-dot-architecture name.
+ *
+ * @returns Read only build target-dot-architecture string.
+ */
+RTDECL(const char *) RTBldCfgTargetDotArch(void);
+
+/**
+ * Gets the build type name.
+ *
+ * @returns Read only build type string.
+ */
+RTDECL(const char *) RTBldCfgType(void);
+
 
 /** @} */
Index: /trunk/src/VBox/Runtime/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Runtime/Makefile.kmk	(revision 33678)
+++ /trunk/src/VBox/Runtime/Makefile.kmk	(revision 33679)
@@ -108,5 +108,8 @@
 	IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
 	IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
-	IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
+	IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
+	IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
+	IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
+	IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
 
 #
Index: /trunk/src/VBox/Runtime/common/misc/buildconfig.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/misc/buildconfig.cpp	(revision 33678)
+++ /trunk/src/VBox/Runtime/common/misc/buildconfig.cpp	(revision 33679)
@@ -79,2 +79,34 @@
 #endif
 
+
+#ifdef IPRT_BLDCFG_TARGET
+RTDECL(const char *) RTBldCfgTarget(void)
+{
+    return IPRT_BLDCFG_TARGET;
+}
+#endif
+
+
+#ifdef IPRT_BLDCFG_TARGET_ARCH
+RTDECL(const char *) RTBldCfgTargetArch(void)
+{
+    return IPRT_BLDCFG_TARGET_ARCH;
+}
+#endif
+
+
+#if defined(IPRT_BLDCFG_TARGET) && defined(IPRT_BLDCFG_TARGET_ARCH)
+RTDECL(const char *) RTBldCfgTargetDotArch(void)
+{
+    return IPRT_BLDCFG_TARGET "." IPRT_BLDCFG_TARGET_ARCH;
+}
+#endif
+
+
+#ifdef IPRT_BLDCFG_TYPE
+RTDECL(const char *) RTBldCfgType(void)
+{
+    return IPRT_BLDCFG_TYPE;
+}
+#endif
+
