summaryrefslogtreecommitdiff
path: root/meta-aspeed/recipes-aspeed
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-25 21:03:56 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-08-16 02:27:18 +0300
commit3432de15ab09a137f2dbcf2f34f51228597dcc44 (patch)
tree4a44b81da0666bd30d877604a767f186bb9592bb /meta-aspeed/recipes-aspeed
parented0fb571fc149de85f2b99ddf73bb1ca5cc38cb7 (diff)
downloadopenbmc-3432de15ab09a137f2dbcf2f34f51228597dcc44.tar.xz
aspeed: provide suitable kernel build defaults
oe-core has these defaults: KERNEL_IMAGETYPE: "zimage" KERNEL_CLASSES: "kernel-uimage" INITRAMFS_IMAGE: "" INITRAMFS_FSTYPES: "cpio.gz" Override those defaults with Aspeed specific defaults that are more appropriate to the current state of typical usage (FIT) of Aspeed chips: KERNEL_IMAGETYPE: "fitImage" KERNEL_CLASSES: "kernel-fitimage" INITRAMFS_IMAGE: "aspeed-image-initramfs" INITRAMFS_FSTYPES: "cpio.xz" By default use aspeed-image-initramfs in the FIT image. aspeed-image-initramfs is just an alias to core-image-minimal. The alias is required because vanilla core-image-minimal is not an initramfs image recipe...in oe, in general, the usage of the image recipe (initramfs or not) is baked into the recipe itself with a line like: IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" The same behavior *could* be obtained with a bbappend but that then prevents users from using the original image recipe as a real root filesystem image in their setups. Perhaps at a later time a replacement image with an Aspeed hardware evaluation kit theme would be a more suitable default. (From meta-aspeed rev: 7639df3650f6d91c9b533e0287142fdcfbc0b2ea) Change-Id: I51def69bcfd786f4c8aad2ae68376da335aad039 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-aspeed/recipes-aspeed')
-rw-r--r--meta-aspeed/recipes-aspeed/images/aspeed-image-initramfs.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-aspeed/recipes-aspeed/images/aspeed-image-initramfs.bb b/meta-aspeed/recipes-aspeed/images/aspeed-image-initramfs.bb
new file mode 100644
index 000000000..9f4502103
--- /dev/null
+++ b/meta-aspeed/recipes-aspeed/images/aspeed-image-initramfs.bb
@@ -0,0 +1,3 @@
+IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+
+require recipes-core/images/core-image-minimal.bb