From 1badf00d60631ec56fec946de0d91ea8b976ae67 Mon Sep 17 00:00:00 2001 From: Matthieu Jolimaitre Date: Fri, 13 Sep 2024 17:45:50 +0200 Subject: [PATCH] add emulation --- build.sh | 2 +- emulate | 6 ++++++ menu.json | 35 ++++++++++++++++++++--------------- 3 files changed, 27 insertions(+), 16 deletions(-) create mode 100755 emulate diff --git a/build.sh b/build.sh index 5717ab8..f4f5c92 100755 --- a/build.sh +++ b/build.sh @@ -6,4 +6,4 @@ cd "$(dirname "$(realpath "$0")")" cooker init --force menu.json cooker generate cooker update -cooker build --keepgoing +cooker build --keepgoing diff --git a/emulate b/emulate new file mode 100755 index 0000000..482cbde --- /dev/null +++ b/emulate @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +cd "$(dirname "$(realpath "$0")")" + + +cooker shell -- qemu runqemu qemux86-64 diff --git a/menu.json b/menu.json index ebd4751..cf4891c 100644 --- a/menu.json +++ b/menu.json @@ -15,24 +15,29 @@ "qemu": { "target" : "core-image-base", "local.conf": [ - "# distro", - "DISTRO = 'poky' ", - "PACKAGE_CLASSES = 'package_deb' ", - - "# softwares", - "IMAGE_FEATURES += ' empty-root-password' ", - "EXTRA_IMAGE_FEATURES = ' debug-tweaks splash package-management' ", - "IMAGE_INSTALL += ' nano' ", + "# distro", + "DISTRO = 'poky'", + "PACKAGE_CLASSES = 'package_deb'", - "# hardware", - "MACHINE = 'qemux86-64' ", + "# softwares", + "IMAGE_FEATURES += ' empty-root-password'", + "EXTRA_IMAGE_FEATURES = ' debug-tweaks splash package-management'", + "IMAGE_INSTALL += ' nano busybox'", + + "# hardware", + "MACHINE = 'qemux86-64'", + "MACHINE_FEATURES += ' screen'", "ENABLE_UART = '1' ", + "PACKAGECONFIG:append:pn-qemu-system-native = ' sdl'", - "# optimizations", - "CMDLINE += ' quiet' ", - "INHERIT += ' rm_work'", - "INHERIT += ' ccache'" - ] + "# optimizations", + "CMDLINE += ' quiet'", + "INHERIT += ' rm_work'", + "INHERIT += ' ccache'", + + "# configuring sdk", + "PACKAGECONFIG_pn-nativesdk-qemu = 'sdl'" + ] } } }