add emulation

This commit is contained in:
Matthieu Jolimaitre 2024-09-13 17:45:50 +02:00
parent eef770c03b
commit 1badf00d60
3 changed files with 27 additions and 16 deletions

6
emulate Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
cooker shell -- qemu runqemu qemux86-64

View file

@ -16,22 +16,27 @@
"target" : "core-image-base",
"local.conf": [
"# distro",
"DISTRO = 'poky' ",
"PACKAGE_CLASSES = 'package_deb' ",
"DISTRO = 'poky'",
"PACKAGE_CLASSES = 'package_deb'",
"# softwares",
"IMAGE_FEATURES += ' empty-root-password' ",
"EXTRA_IMAGE_FEATURES = ' debug-tweaks splash package-management' ",
"IMAGE_INSTALL += ' nano' ",
"IMAGE_FEATURES += ' empty-root-password'",
"EXTRA_IMAGE_FEATURES = ' debug-tweaks splash package-management'",
"IMAGE_INSTALL += ' nano busybox'",
"# hardware",
"MACHINE = 'qemux86-64' ",
"MACHINE = 'qemux86-64'",
"MACHINE_FEATURES += ' screen'",
"ENABLE_UART = '1' ",
"PACKAGECONFIG:append:pn-qemu-system-native = ' sdl'",
"# optimizations",
"CMDLINE += ' quiet' ",
"CMDLINE += ' quiet'",
"INHERIT += ' rm_work'",
"INHERIT += ' ccache'"
"INHERIT += ' ccache'",
"# configuring sdk",
"PACKAGECONFIG_pn-nativesdk-qemu = 'sdl'"
]
}
}