Many times you will see a file name, such as SystemGraphicsConsoleDxe.efi. The "SystemGraphicsConsoleDxe" portion of that comes from the BASE_NAME keyword in the INF files. The following little batch file will change the directory wherever the INF is located that contains that BASE_NAME in SecureCore Tiano™. This relies on the environment being set up correctly, as described in SU.BAT.
@IF NOT "%1" == "" GOTO STEP0
@echo.
@echo Usage:
@echo basename base-name
@echo.
@echo Options:
@echo base-name Base name (as specified in the module .INF).
@echo.
@echo Description:
@echo This script changes the current directory to the directory which
@echo contains the INF where BASE_NAME = base-name for the current project.
@echo.
@echo The current project must already be set using su.bat
@goto exit
:STEP0
@IF NOT "%PROJECTTIP%"=="" GOTO STEP1
@echo Project not set. Please select a project tip using SU <project-name> <project-version>.
goto exit
:STEP1
@IF EXIST "%PROJECTTIP%\temp\module.list" GOTO STEP2
@echo Project %PROJECTTIP% not built.
goto exit
:STEP2
@FOR /F "tokens=1,2" %%G IN (%PROJECTTIP%\temp\module.list) DO @IF "%%G"=="%1" cd %%~pH
:exit


