summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/baremetal-image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/baremetal-image.bbclass')
-rw-r--r--meta/classes-recipe/baremetal-image.bbclass20
1 files changed, 11 insertions, 9 deletions
diff --git a/meta/classes-recipe/baremetal-image.bbclass b/meta/classes-recipe/baremetal-image.bbclass
index d3377a92fa..513155e9ae 100644
--- a/meta/classes-recipe/baremetal-image.bbclass
+++ b/meta/classes-recipe/baremetal-image.bbclass
@@ -15,15 +15,6 @@
15# 15#
16# See meta-skeleton for a working example. 16# See meta-skeleton for a working example.
17 17
18## Emulate image.bbclass
19# Handle inherits of any of the image classes we need
20IMAGE_CLASSES ??= ""
21IMGCLASSES = " ${IMAGE_CLASSES}"
22inherit ${IMGCLASSES}
23# Set defaults to satisfy IMAGE_FEATURES check
24IMAGE_FEATURES ?= ""
25IMAGE_FEATURES[type] = "list"
26IMAGE_FEATURES[validitems] += ""
27 18
28# Toolchain should be baremetal or newlib based. 19# Toolchain should be baremetal or newlib based.
29# TCLIBC="baremetal" or TCLIBC="newlib" 20# TCLIBC="baremetal" or TCLIBC="newlib"
@@ -110,6 +101,17 @@ QB_OPT_APPEND:append:qemuriscv32 = " -bios none"
110CFLAGS:append:qemuriscv64 = " -mcmodel=medany" 101CFLAGS:append:qemuriscv64 = " -mcmodel=medany"
111 102
112 103
104## Emulate image.bbclass
105# Handle inherits of any of the image classes we need
106IMAGE_CLASSES ??= ""
107IMGCLASSES = " ${IMAGE_CLASSES}"
108inherit ${IMGCLASSES}
109# Set defaults to satisfy IMAGE_FEATURES check
110IMAGE_FEATURES ?= ""
111IMAGE_FEATURES[type] = "list"
112IMAGE_FEATURES[validitems] += ""
113
114
113# This next part is necessary to trick the build system into thinking 115# This next part is necessary to trick the build system into thinking
114# its building an image recipe so it generates the qemuboot.conf 116# its building an image recipe so it generates the qemuboot.conf
115addtask do_rootfs before do_image after do_install 117addtask do_rootfs before do_image after do_install