Yue Tao 21edf8072c Debian: support multi kernels in single image
Introduce a new function change_default_kernel() to change the default
boot kernel, which is defined as "default-kernel" in lat.yaml file.

Either build-image --std or build-image --rt uses the same pkg list
file(stx-std.lst), no longer maintain stx-rt.lst. All the rt packages
are merged into stx-std.lst, so always pass "std" to function
check_stx_patched() to select stx-std.lst file.

The --std or --rt of build-image changes to set the default booting
kernel.

Test Plan:

Pass: build-image --std
Pass: boot up, uname -a shows up std kernel
Pass: change to rt kernel in /boot/1/kernel.env
Pass: reboot, uname -a shows up rt kernel

Pass: build-image --rt
Pass: boot up, uname -a shows up rt kernel
Pass: change to std kernel in /boot/1/kernel.env
Pass: reboot, uname -a shows up std kernel

Story: 2008846
Task: 45417

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I784aefd540ab334c460e9f136910da9ac6b86209
2022-05-25 10:41:13 +08:00
..
2022-04-19 17:42:35 +08:00
2022-05-05 11:03:37 +08:00
2022-04-19 17:42:35 +08:00
2022-04-19 17:42:35 +08:00
2022-05-02 10:30:58 -07:00