Add ""@KERNEL_TYPE@" in kernel modules' build codes.
When building modules for kernel-std, it is replaced by null, and
when building modules for kernel-rt, it is replaced by '-rt'.
The build results for rt kernel related will be put at:
/localdisk/loadbuild/<USER>/stx/rt
The build results for std kernel related will be put at:
/localdisk/loadbuild/<USER>/stx/std
Test Plan:
- PASS: build kernel-rt.
- PASS: build the 7 oot kernel modules for kernel-rt.
- PASS: build the test image for kernel-rt and oot modules of it;
boot up on qemu and probe ko for every oot kernel-module.
- PASS: do above 3 tests (build modules/build iso/boot up on qemu)
for kernel-std and verify that this change doesn't affect
std kernel and modules.
Depends-On: https://review.opendev.org/c/starlingx/root/+/835627
Depends-On: https://review.opendev.org/c/starlingx/root/+/834809
Story: 2009221
Task: 44808
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Change-Id: Ia92191eebb9af8d5affe625a9bd631fe916a277e