Commit f472d985 authored by Luca Giordano's avatar Luca Giordano

Renaming rtems-impr ==> rtems5 part two

Refs: #112269

    modified: tools/configurator/air/pos/rtems-impr/config.py
    modified: tools/configurator/air/pos/rtems-impr/rtems5_makefile.mako
    modified: tools/configurator/air/pos/rtems-impr/rtems5_partition_makefile.mako
parent 64e8d531
##
# @package air.pos.rtems-impr
# @package air.pos.rtems5
# @author dtms
# @brief RTEMS 4.12 configuration
......@@ -11,10 +11,10 @@ from air import *
import utils.file as file_tools
# @brief Name
name = "rtems-impr"
name = "rtems5"
# @brief Description
description = "RTEMS-IMPR"
description = "RTEMS5"
# @brief OS alias
alias = ['rtems']
......@@ -35,18 +35,18 @@ public_header_files = {
}
# @brief Custom Makefile
makefile = os.path.join(POS_DIRECTORY, 'rtems-impr', 'rtems5_makefile.mako')
makefile = os.path.join(POS_DIRECTORY, 'rtems5', 'rtems5_makefile.mako')
# @brief List of lines to be add to Makefile.inc
makefile_inc = [
"RTEMS_DIRECTORY=rtems-impr",
"RTEMS_DIRECTORY=rtems5",
"RTEMS_TARGET=sparc-rtems5",
"RTEMS_BSP=leon3",
]
# @brief List of application partition templates
partition_templates = [
os.path.join(POS_DIRECTORY, 'rtems-impr', 'rtems5_partition_makefile.mako'), # POS makefile
os.path.join(POS_DIRECTORY, 'rtems-impr', 'init.c.mako'),
os.path.join(POS_DIRECTORY, 'rtems-impr', 'rtems_config.h.mako'),
os.path.join(POS_DIRECTORY, 'rtems5', 'rtems5_partition_makefile.mako'), # POS makefile
os.path.join(POS_DIRECTORY, 'rtems5', 'init.c.mako'),
os.path.join(POS_DIRECTORY, 'rtems5', 'rtems_config.h.mako'),
]
......@@ -12,19 +12,19 @@
build_dir = os.path.join(
os.path.relpath(air.INSTALL_DIRECTORY, output_dir),
os.path.relpath(output_dir, air.ROOT_DIRECTORY),
'rtems-impr-build')
'rtems5-build')
# rtems install dir
install_dir = os.path.join(
air.INSTALL_DIRECTORY,
os.path.relpath(output_dir, air.ROOT_DIRECTORY),
'rtems-impr-install')
'rtems5-install')
# get libair headers
libair_headers = os_configuration.get_libair_headers()
%>\
<%namespace name="template" file="/makefile.mako"/>\
${template.FileHeader("POS RTEMS-IMPR - RTEMS-IMPR personality")}\
${template.FileHeader("POS RTEMS5 - RTEMS5 personality")}\
# Makefile Include file
${template.MakefileInc()}
......@@ -40,13 +40,13 @@ RTEMS_BUILD_DIR=${build_dir}
RTEMS_INSTALL_DIR=${install_dir}
# All
${template.Rule('all', True, ['rtems-impr'])}
${template.Rule('all', True, ['rtems5'])}
# RTEMS 4.12
${template.Rule('rtems-impr', True, None)}
${template.Rule('rtems5', True, None)}
${'\t'}if [ ! -d "$(RTEMS_BUILD_DIR)" ]; then ${'\\'}
${'\t'}$(MKDIR) $(RTEMS_BUILD_DIR) && ${'\\'}
${'\t'}cd $(RTEMS_BUILD_DIR); $(CURRENT_PATH)/rtems-impr/configure ${'\\'}
${'\t'}cd $(RTEMS_BUILD_DIR); $(CURRENT_PATH)/rtems5/configure ${'\\'}
${'\t\t'}--target=$(RTEMS_TARGET) ${'\\'}
${'\t\t'}--enable-rtems-inlines ${'\\'}
${'\t\t'}--disable-itron ${'\\'}
......
......@@ -45,7 +45,7 @@ $(AIR_LIBS)/${libname.lower()}/${libname.lower()}.a${'\\' if i < len(partition.l
% endfor
# The RTEMS_MAKEFILE_PATH is defined by the user for the specific CPU and BSP
RTEMS_MAKEFILE_PATH=$(AIR_POS)/${os.path.join(pos_config.name, 'rtems-impr-install', 'sparc-rtems5', 'leon3')}
RTEMS_MAKEFILE_PATH=$(AIR_POS)/${os.path.join(pos_config.name, 'rtems5-install', 'sparc-rtems5', 'leon3')}
# These includes should not be modified by the user.
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment