diff options
Diffstat (limited to 'recipes-bsp/rmc')
55 files changed, 257 insertions, 0 deletions
diff --git a/recipes-bsp/rmc/boards/Galileo2/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/Galileo2/BOOTENTRY.CONFIG new file mode 100644 index 00000000..dd1b9114 --- /dev/null +++ b/recipes-bsp/rmc/boards/Galileo2/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,3 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
3 | |||
diff --git a/recipes-bsp/rmc/boards/Galileo2/boot.conf b/recipes-bsp/rmc/boards/Galileo2/boot.conf new file mode 100644 index 00000000..580ea486 --- /dev/null +++ b/recipes-bsp/rmc/boards/Galileo2/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Galileo Gen 2 boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot rootwait console=ttyS1,115200 | ||
diff --git a/recipes-bsp/rmc/boards/Galileo2/gallieo2.fp b/recipes-bsp/rmc/boards/Galileo2/gallieo2.fp new file mode 100755 index 00000000..fe77d4d1 --- /dev/null +++ b/recipes-bsp/rmc/boards/Galileo2/gallieo2.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/Galileo2/install.conf b/recipes-bsp/rmc/boards/Galileo2/install.conf new file mode 100644 index 00000000..688c2a8f --- /dev/null +++ b/recipes-bsp/rmc/boards/Galileo2/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Galileo Gen 2 install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi rootwait console=ttyS1,115200 | ||
diff --git a/recipes-bsp/rmc/boards/MinnowboardTurbot/KBOOTPARAM b/recipes-bsp/rmc/boards/MinnowboardTurbot/KBOOTPARAM new file mode 100644 index 00000000..476b1fbe --- /dev/null +++ b/recipes-bsp/rmc/boards/MinnowboardTurbot/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
console=ttyS0,115200 | |||
diff --git a/recipes-bsp/rmc/boards/MinnowboardTurbot/minnowboardturbot.fp b/recipes-bsp/rmc/boards/MinnowboardTurbot/minnowboardturbot.fp new file mode 100644 index 00000000..9aa145f3 --- /dev/null +++ b/recipes-bsp/rmc/boards/MinnowboardTurbot/minnowboardturbot.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/NUC5i5RYB/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/INSTALLER.CONFIG b/recipes-bsp/rmc/boards/NUC5i5RYB/INSTALLER.CONFIG new file mode 100644 index 00000000..ca5f04b9 --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/INSTALLER.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | efi_entry_dir:root:disk:770:/boot/loader/entries/ | ||
2 | boot.conf:root:disk:770:/boot/loader/entries/rmcboot.conf | ||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/POSTINSTALL.sh b/recipes-bsp/rmc/boards/NUC5i5RYB/POSTINSTALL.sh new file mode 100644 index 00000000..6694261b --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/POSTINSTALL.sh | |||
@@ -0,0 +1,2 @@ | |||
1 | # There is no tty device on this board. | ||
2 | sed -i '/start_getty.\+ttyS.*/d' /tgt_root/etc/inittab | ||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/boot.conf b/recipes-bsp/rmc/boards/NUC5i5RYB/boot.conf new file mode 100644 index 00000000..b29fa45e --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title NUC5i5RYB boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot rootwait | ||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/install.conf b/recipes-bsp/rmc/boards/NUC5i5RYB/install.conf new file mode 100644 index 00000000..0dca3cae --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title NUC5i5RYB install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi rootwait | ||
diff --git a/recipes-bsp/rmc/boards/NUC5i5RYB/nuc5i5.fp b/recipes-bsp/rmc/boards/NUC5i5RYB/nuc5i5.fp new file mode 100644 index 00000000..57374779 --- /dev/null +++ b/recipes-bsp/rmc/boards/NUC5i5RYB/nuc5i5.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/T100-32bit/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/T100-32bit/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/T100-32bit/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/T100-32bit/T100-32bit.fp b/recipes-bsp/rmc/boards/T100-32bit/T100-32bit.fp new file mode 100644 index 00000000..86ecea73 --- /dev/null +++ b/recipes-bsp/rmc/boards/T100-32bit/T100-32bit.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/T100-32bit/boot.conf b/recipes-bsp/rmc/boards/T100-32bit/boot.conf new file mode 100644 index 00000000..f1578e0f --- /dev/null +++ b/recipes-bsp/rmc/boards/T100-32bit/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title T100T(32bit) boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot loglevel=8 | ||
diff --git a/recipes-bsp/rmc/boards/T100-32bit/install.conf b/recipes-bsp/rmc/boards/T100-32bit/install.conf new file mode 100644 index 00000000..67e7eb18 --- /dev/null +++ b/recipes-bsp/rmc/boards/T100-32bit/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title T100T(32bit) install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/broxton-m/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/INSTALLER.CONFIG b/recipes-bsp/rmc/boards/broxton-m/INSTALLER.CONFIG new file mode 100644 index 00000000..ecd20609 --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/INSTALLER.CONFIG | |||
@@ -0,0 +1,3 @@ | |||
1 | # Keep rmc Joule boot.conf instead of meta-intel default | ||
2 | efi_entry_dir:root:disk:770:/boot/loader/entries/ | ||
3 | boot.conf:root:disk:770:/boot/loader/entries/boot.conf | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/KBOOTPARAM b/recipes-bsp/rmc/boards/broxton-m/KBOOTPARAM new file mode 100644 index 00000000..08be5dfb --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
video=efifb maxcpus=4 reboot=efi kmemleak=off console=tty0 console=ttyS2,115200 | |||
diff --git a/recipes-bsp/rmc/boards/broxton-m/POSTINSTALL.sh b/recipes-bsp/rmc/boards/broxton-m/POSTINSTALL.sh new file mode 100644 index 00000000..30bbd28e --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/POSTINSTALL.sh | |||
@@ -0,0 +1,2 @@ | |||
1 | # Joule uses only S2 for serial, so remove S0 | ||
2 | sed -i '/start_getty.\+ttyS0/d' /tgt_root/etc/inittab | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/bm-1F1.fp b/recipes-bsp/rmc/boards/broxton-m/bm-1F1.fp new file mode 100755 index 00000000..1a150280 --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/bm-1F1.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/broxton-m/bm.fp b/recipes-bsp/rmc/boards/broxton-m/bm.fp new file mode 100755 index 00000000..135a7a5d --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/bm.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/broxton-m/boot.conf b/recipes-bsp/rmc/boards/broxton-m/boot.conf new file mode 100644 index 00000000..caa00c50 --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Joule / Broxton-m | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/install.conf b/recipes-bsp/rmc/boards/broxton-m/install.conf new file mode 100644 index 00000000..9cdd86b7 --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Joule / Broxton-m Install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi rootwait | ||
diff --git a/recipes-bsp/rmc/boards/broxton-m/joule-1F1.fp b/recipes-bsp/rmc/boards/broxton-m/joule-1F1.fp new file mode 100644 index 00000000..d757614f --- /dev/null +++ b/recipes-bsp/rmc/boards/broxton-m/joule-1F1.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/minnowmax/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/minnowmax/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmax/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/minnowmax/boot.conf b/recipes-bsp/rmc/boards/minnowmax/boot.conf new file mode 100644 index 00000000..6e789cd8 --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmax/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Minnow Max boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot console=ttyS0,115200n8 | ||
diff --git a/recipes-bsp/rmc/boards/minnowmax/install.conf b/recipes-bsp/rmc/boards/minnowmax/install.conf new file mode 100644 index 00000000..1a493aec --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmax/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Minnow Max install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi console=ttyS0,115200n8 | ||
diff --git a/recipes-bsp/rmc/boards/minnowmax/minnowmax.fp b/recipes-bsp/rmc/boards/minnowmax/minnowmax.fp new file mode 100644 index 00000000..3c5a286f --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmax/minnowmax.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/minnowmaxB3/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/minnowmaxB3/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmaxB3/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/minnowmaxB3/boot.conf b/recipes-bsp/rmc/boards/minnowmaxB3/boot.conf new file mode 100644 index 00000000..577e5d6a --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmaxB3/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Minnow Max B3 boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot console=ttyS0,115200n8 | ||
diff --git a/recipes-bsp/rmc/boards/minnowmaxB3/install.conf b/recipes-bsp/rmc/boards/minnowmaxB3/install.conf new file mode 100644 index 00000000..cf500d6c --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmaxB3/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Minnow Max B3 install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi console=ttyS0,115200n8 | ||
diff --git a/recipes-bsp/rmc/boards/minnowmaxB3/minnowmaxB3.fp b/recipes-bsp/rmc/boards/minnowmaxB3/minnowmaxB3.fp new file mode 100644 index 00000000..ad3f0d6d --- /dev/null +++ b/recipes-bsp/rmc/boards/minnowmaxB3/minnowmaxB3.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG b/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG new file mode 100644 index 00000000..8c5a7678 --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG | |||
@@ -0,0 +1,3 @@ | |||
1 | # Keep rmc Mohonpeak boot.conf instead of meta-intel default | ||
2 | efi_entry_dir:root:disk:770:/boot/loader/entries/ | ||
3 | boot.conf:root:disk:770:/boot/loader/entries/boot.conf | ||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM b/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM new file mode 100644 index 00000000..169056ee --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
console=ttyS1,115200 console=tty1 | |||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh b/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh new file mode 100644 index 00000000..5f440c38 --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh | |||
@@ -0,0 +1,3 @@ | |||
1 | # Mohonpeak uses only S1 for serial, so remove S0 and S2 | ||
2 | sed -i '/start_getty.\+ttyS0/d' /tgt_root/etc/inittab | ||
3 | sed -i '/start_getty.\+ttyS2/d' /tgt_root/etc/inittab | ||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/boot.conf b/recipes-bsp/rmc/boards/mohonpeak/boot.conf new file mode 100644 index 00000000..5b7a0f63 --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Mohon Peak boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot | ||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/install.conf b/recipes-bsp/rmc/boards/mohonpeak/install.conf new file mode 100644 index 00000000..dde3497d --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title Mohon Peak Install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi rootwait | ||
diff --git a/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp b/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp new file mode 100644 index 00000000..bc4bdae4 --- /dev/null +++ b/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/nucgen6/BOOTENTRY.CONFIG b/recipes-bsp/rmc/boards/nucgen6/BOOTENTRY.CONFIG new file mode 100644 index 00000000..b2fabe82 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/BOOTENTRY.CONFIG | |||
@@ -0,0 +1,2 @@ | |||
1 | boot.conf | ||
2 | install.conf | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/INSTALLER.CONFIG b/recipes-bsp/rmc/boards/nucgen6/INSTALLER.CONFIG new file mode 100644 index 00000000..7d5378b2 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/INSTALLER.CONFIG | |||
@@ -0,0 +1,6 @@ | |||
1 | # This file specifies which file or dir RMC will install onto target. | ||
2 | # Note the absolute path is referred from mount points in installation. | ||
3 | efi_entry_dir:root:disk:770:/boot/loader/entries/ | ||
4 | boot.conf:root:disk:770:/boot/loader/entries/rmcboot.conf | ||
5 | mylibdir:root:root:770:/tgt_root/etc/mylib/ | ||
6 | mylib.conf:root:root:660:/tgt_root/etc/mylib/mylib.conf | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/KBOOTPARAM b/recipes-bsp/rmc/boards/nucgen6/KBOOTPARAM new file mode 100644 index 00000000..27943b49 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
i915.preliminary_hw_support=1 | |||
diff --git a/recipes-bsp/rmc/boards/nucgen6/POSTINSTALL.sh b/recipes-bsp/rmc/boards/nucgen6/POSTINSTALL.sh new file mode 100644 index 00000000..bec3be42 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/POSTINSTALL.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | # NUC Gen 6 specific retouch after RMC deployment | ||
2 | |||
3 | # The generated inittab from OE build causes error messages: | ||
4 | # "auth.err getty[615]: tcgetattr: Input/output error" | ||
5 | # in /var/log/messages because NUC Gen 6 doesn't have any | ||
6 | # serial tty. We delete line(s) here on target. | ||
7 | sed -i '/start_getty.\+ttyS.*/d' /tgt_root/etc/inittab | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/boot.conf b/recipes-bsp/rmc/boards/nucgen6/boot.conf new file mode 100644 index 00000000..e6ecb029 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/boot.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title NUC Gen6 boot | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=boot | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/install.conf b/recipes-bsp/rmc/boards/nucgen6/install.conf new file mode 100644 index 00000000..916bb04b --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/install.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | title NUC Gen6 install | ||
2 | linux /vmlinuz | ||
3 | initrd /initrd | ||
4 | options LABEL=install-efi | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/mylib.conf b/recipes-bsp/rmc/boards/nucgen6/mylib.conf new file mode 100644 index 00000000..fd8357c2 --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/mylib.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | # This is a demo conf file read by an imagined program or library | ||
2 | # which reads this file at runtime to customize its behavior. | ||
3 | # rmc will deploy it to the location specified in INSTALLER.CONFIG. | ||
4 | |||
5 | lib.info = "V1.0 for rmc demo" | ||
6 | lib.board = "NUC gen 6" | ||
7 | prog.ui.layout = "minimal" | ||
diff --git a/recipes-bsp/rmc/boards/nucgen6/nuc6.fp b/recipes-bsp/rmc/boards/nucgen6/nuc6.fp new file mode 100644 index 00000000..834f800b --- /dev/null +++ b/recipes-bsp/rmc/boards/nucgen6/nuc6.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM b/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM new file mode 100644 index 00000000..476b1fbe --- /dev/null +++ b/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
console=ttyS0,115200 | |||
diff --git a/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp b/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp new file mode 100644 index 00000000..e4c41657 --- /dev/null +++ b/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM b/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM new file mode 100644 index 00000000..476b1fbe --- /dev/null +++ b/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM | |||
@@ -0,0 +1 @@ | |||
console=ttyS0,115200 | |||
diff --git a/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp b/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp new file mode 100644 index 00000000..7f28f37c --- /dev/null +++ b/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp | |||
Binary files differ | |||
diff --git a/recipes-bsp/rmc/rmc-db.bb b/recipes-bsp/rmc/rmc-db.bb new file mode 100644 index 00000000..f24ed11c --- /dev/null +++ b/recipes-bsp/rmc/rmc-db.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SUMMARY = "Central RMC Database" | ||
2 | DESCRIPTION = "Generate a centralized RMC database for RMC feature. \ | ||
3 | Fingerprints and data for all boards supported are specified by variable \ | ||
4 | RMC_BOARD_DATA_DIRS which is a list of top directories that contains \ | ||
5 | subdirectories for boards. Developers can add their top directories by appending \ | ||
6 | them to this variable in a rmc-db.bbappend.Refer to rmc-db bbclass for more \ | ||
7 | information." | ||
8 | |||
9 | LICENSE = "MIT" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
12 | |||
13 | S = "${WORKDIR}" | ||
14 | |||
15 | inherit rmc-db | ||
16 | |||
17 | RMC_BOARD_DATA_DIRS ?= "${THISDIR}/boards/" | ||
18 | RMC_DB_DIR = "${WORKDIR}/db" | ||
19 | |||
20 | # Let sstate be aware of change in any added board directories | ||
21 | do_generate_rmc_db[file-checksums] = "${@get_rmc_top_dirs_list(d)}" | ||
22 | |||
23 | # derived from get_lic_checksum_file_list(d) in base.bbclass in OE | ||
24 | def get_rmc_top_dirs_list(d): | ||
25 | dirlist = [] | ||
26 | dirs = d.getVar("RMC_BOARD_DATA_DIRS", True) or '' | ||
27 | topdirs = dirs.split() | ||
28 | for each in topdirs: | ||
29 | dirlist.append(each + ":" + str(os.path.exists(each))) | ||
30 | return " ".join(dirlist) | ||
31 | |||
32 | do_generate_rmc_db () { | ||
33 | rmc_generate_db "${RMC_BOARD_DATA_DIRS}" "${RMC_DB_DIR}"/rmc.db | ||
34 | } | ||
35 | |||
36 | addtask generate_rmc_db after do_compile | ||
37 | |||
38 | inherit deploy | ||
39 | |||
40 | do_deploy () { | ||
41 | if [ -f ${RMC_DB_DIR}/rmc.db ]; then | ||
42 | install -m 0400 ${RMC_DB_DIR}/rmc.db ${DEPLOYDIR} | ||
43 | else | ||
44 | rm -f ${DEPLOYDIR}/rmc.db | ||
45 | echo "Warning: no RMC central database found, skip deployment." | ||
46 | fi | ||
47 | } | ||
48 | |||
49 | addtask deploy after do_generate_rmc_db | ||
diff --git a/recipes-bsp/rmc/rmc-efi.bb b/recipes-bsp/rmc/rmc-efi.bb new file mode 100644 index 00000000..2a1c9a98 --- /dev/null +++ b/recipes-bsp/rmc/rmc-efi.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | SUMMARY = "RMC (Runtime Machine Configuration) EFI library" | ||
2 | |||
3 | DESCRIPTION = "The RMC EFI library adds RMC support to existing EFI bootloaders" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=ade413c694d3aaefc9554b24a8814ee8" | ||
8 | |||
9 | SRC_URI = "git://git.yoctoproject.org/rmc" | ||
10 | |||
11 | SRCREV = "027ac76f642dcab1a9f237a00f03a3a714bd04b9" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux*" | ||
16 | |||
17 | TARGET_CFLAGS +="-Wl,--hash-style=both" | ||
18 | |||
19 | EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ | ||
20 | RMC_INSTALL_LIB_PATH=${D}${libdir} \ | ||
21 | RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" | ||
22 | |||
23 | SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" | ||
24 | SECURITY_CFLAGS_append_class-target = " -fno-stack-protector" | ||
25 | |||
26 | python () { | ||
27 | ccargs = d.getVar('TUNE_CCARGS').split() | ||
28 | if '-mx32' in ccargs: | ||
29 | ccargs.remove('-mx32') | ||
30 | ccargs.append('-m64') | ||
31 | d.setVar('TUNE_CCARGS', ' '.join(ccargs)) | ||
32 | } | ||
33 | |||
34 | do_compile() { | ||
35 | oe_runmake -f Makefile.efi | ||
36 | } | ||
37 | |||
38 | do_install() { | ||
39 | oe_runmake -f Makefile.efi install | ||
40 | } | ||
diff --git a/recipes-bsp/rmc/rmc.bb b/recipes-bsp/rmc/rmc.bb new file mode 100644 index 00000000..8797644b --- /dev/null +++ b/recipes-bsp/rmc/rmc.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SUMMARY = "RMC (Runtime Machine Configuration)" | ||
2 | |||
3 | DESCRIPTION = "RMC project provides a tool and libraries to identify types \ | ||
4 | of hardware boards and access any file-based data specific to the board's \ | ||
5 | type at runtime in a centralized way. Software (clients) can have a generic \ | ||
6 | logic to query board-specific data from RMC without knowing the type of board. \ | ||
7 | This make it possible to have a generic software work running on boards which \ | ||
8 | require any quirks or customizations at a board or product level. \ | ||
9 | " | ||
10 | |||
11 | LICENSE = "MIT" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=ade413c694d3aaefc9554b24a8814ee8" | ||
14 | |||
15 | SRC_URI = "git://git.yoctoproject.org/rmc" | ||
16 | |||
17 | SRCREV = "027ac76f642dcab1a9f237a00f03a3a714bd04b9" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux*" | ||
22 | |||
23 | TARGET_CFLAGS +="-Wl,--hash-style=both" | ||
24 | |||
25 | EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ | ||
26 | RMC_INSTALL_BIN_PATH=${D}${bindir} \ | ||
27 | RMC_INSTALL_LIB_PATH=${D}${libdir} \ | ||
28 | RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" | ||
29 | |||
30 | SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" | ||
31 | SECURITY_CFLAGS_append_class-target = " -fno-stack-protector" | ||
32 | |||
33 | do_compile_class-target() { | ||
34 | oe_runmake | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | oe_runmake install | ||
39 | } | ||
40 | |||
41 | do_install_class-native() { | ||
42 | install -d ${D}${STAGING_BINDIR_NATIVE} | ||
43 | install -m 0755 ${S}/src/rmc ${D}${STAGING_BINDIR_NATIVE} | ||
44 | } | ||
45 | |||
46 | BBCLASSEXTEND = "native" | ||