GHS - Unexpected Top-Level Project
I'm trying to use the Green Hills MULTI
generator with Integrity178. I've never used regular Integrity so I don't know what the differences are. Trying to setup a hello world style project and I'm seeing some unexpected results. My input file looks something like this:
project( test_system LANGUAGES C)
add_executable( test1
test.c
INTEGRITY.ld
)
add_executable( test_kernel
kernel.c
kernel.ld
)
add_executable( test_system
test_system.int
)
add_dependencies( test_system test1 test_kernel )
My first observation is that any target that includes a source of *.int
will become an [INTEGRITY Application]
. Is this the desired behavior? Secondly the top-level project and Integrity project files look like this:
# Top Level Project File
[Project]
-os_dir="C:/ghs/int-mz-1501-richland-beta/rtos"
-bsp intel-gr
test1/test1.gpj [Program]
test_system/test_system.gpj [INTEGRITY Application]
test_kernel/test_kernel.gpj [Program]
[INTEGRITY Application]
-o "C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test_system/test_system.elf"
:extraOutputFile="C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test_system/test_system.elf.ael"
-L"C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test1/"
-L"C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test_kernel/"
C:/Users/RTc/Documents/FBAK/test/Source/test_system.int
Unfortunately this doesn't produce a working system as it has errors during the build phase. I was expecting to see something like this:
# Top Level Project File
[Project]
-os_dir="C:/ghs/int-mz-1501-richland-beta/rtos"
-bsp intel-gr
test_system/test_system.gpj [INTEGRITY Application]
[INTEGRITY Application]
-o "C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test_system/test_system.elf"
:extraOutputFile="C:/Users/RTc/Documents/FBAK/test/Build/test/cmake/test_ApolloLake/test_system/test_system.elf.ael"
C:/Users/RTc/Documents/FBAK/test/Source/test_system.int
test1/test1.gpj [Program]
test_kernel/test_kernel.gpj [Program]
By manually editing these two file then the system finishes being built. I haven't created a more complicated scenario where the intex
tool needs to produce header files for the kernel and applications. I don't think that the original results would run in the correct order for that. I would appreciate any insight into the situation.