def check_platform():
    rosconfig_exists = os.path.exists(core.rosconfig_cmake())
    if rosconfig_exists:
        print "-- Found rosconfig.cmake."
        print "  -- Setting the install prefix to ${TOOLCHAIN_INSTALL_PREFIX}"
        prefix.set_install_prefix("${TOOLCHAIN_INSTALL_PREFIX}")
        print "  -- Confirm that it is compatible with the current toolchain."
    else:
        print "-- No rosconfig.cmake, generating a default (vanilla) configuration."
        platform.select_default()
def create_vanilla_config():
#    print "No existing platform configuration exists - creating a default."
    platform.select_default()