Don't know which is the correct forum for this but I have recently imported a project from HEW to e2studio. Manually rather than use the import function as we have lots of special processes involved.
The project builds fine but I would like to run the makefile it generates from the command line so that I can use a gitlab runner to compile the project.
So far I have checked into gitlab all the makefile, the makefile.init objects.mk, source.mk and any subdir.mk files.
If I run the makefile from the HardwareDebug directory using the following command
>c:\Renesas\e2_studio\Utilities\make -j4 all
everything build fine.
In gitlab I have registered a runner to execute the following script to build
build: script: - cd HardwareDebug - c:\\renesas\\e2_studio\\utilities\\make -j4 all
this almost works but finishes with the following error
rx-elf-gcc -T "C:/WorkSpace/90460_SmartCell_CIE_Eclipse/generate/linker_script.ld" -L"C:\WorkSpace\90460_SmartCell_CIE_Eclipse\HardwareDebug" -Wl,-M=90460_SmartCell_CIE_Eclipse.map -Wl,--start-group -l90460_SmartCell_CIE_Eclipse -lgcc -Wl,--end-group -nostartfiles -Wl,-e_PowerON_Reset -o "90460_SmartCell_CIE_Eclipse.elf"
c:/program files (x86)/kpit/gnurxv16.01-elf/rx-elf/rx-elf/bin/../lib/gcc/rx-elf/4.8-GNURX_v16.01/../../../../rx-elf/bin/ld.exe: cannot find -90460_SmartCell_CIE_Eclipse
collect2.exe: error: ld returned 1 exit statusmakefile:88: recipe for target '90460_SmartCell_CIE_Eclipse.elf' failedmake: *** [90460_SmartCell_CIE_Eclipse.elf] Error 1
Here is the correct ending when running from the command line
rx-elf-gcc -T "C:/WorkSpace/90460_SmartCell_CIE_Eclipse/generate/linker_script.ld" -L"C:\WorkSpace\90460_SmartCell_CIE_Eclipse\HardwareDebug" -Wl,-M=90460_SmartCell_CIE_Eclipse.map -Wl,--start-group -l90460_SmartCell_CIE_Eclipse -lgcc -Wl,--end-group -nostartfiles -Wl,-e_PowerON_Reset -o "90460_SmartCell_CIE_Eclipse.elf"'Finished building target: 90460_SmartCell_CIE_Eclipse.elf'' ''Invoking Object Copy'rx-elf-objcopy "90460_SmartCell_CIE_Eclipse.elf" -O srec -I elf32-rx-be-ns "90460_SmartCell_CIE_Eclipse.mot"'Finished building: 90460_SmartCell_CIE_Eclipse.mot'' '
Has anyone successfully run the make process from gitlab or come across the error above.
Paul
You specify a temporary workspace location (i.e. -data C:\Temp\APathForATemporaryWorkspace) and E2 Studio will create that location (assuming it has admin rights/write access) and it will import the project (i.e. -import c:\work\project\MyE2StudioProjectFolder) into your temporary workspace and build. One thing to remember to do is, you shouldn't check in your workspace files into GitHub/lab, and the objective is to only put required source code in your repo (along with .project, .cproject, .settings, etc.) and eventually be able to clone the repo, import it into E2 Studio, and click Build and have it build successfully. The "creating the workspace" portion should be done either 1) manually using "Import" in menu bar or 2) using the headlessbuild process in which you give it a directory location that doesn't already have a workspace created for it. Stay persistent, you'll get it :)
When doing an automated "headless" build, is it possible to perform the equivalent of e2 studio's "Generate Project Content" ?