-
Notifications
You must be signed in to change notification settings - Fork 63
[next] Implement foundational changes for NILRT Device Encryption #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
amstewart
wants to merge
30
commits into
ni:nilrt/master/next
Choose a base branch
from
amstewart:feat/next/device-encryption
base: nilrt/master/next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a49f85f
extra_x64: Enable TPM and TPM2 CONFIG options
usercw88 c5926be
x64.conf: add tpm2 to MACHINE_FEATURES
9ba2c52
grub-efi: styling cleanups
72d8278
grub-efi: add tpm module
acf44e4
grub-efi: remove warning suppression
c2f1c1c
grub: enable measured boot
2c5a9f2
pkggrp-ni-base: add TPM/crypt utils
2c307a8
grub: remove unused RAUC parts
cfc4a78
jose: add jose library recipe
24bd889
luksmeta: add recipe at version 10
e606869
clevis: add clevis package at v21
41e4d7c
add clevis to NILRT
c9e7ea5
ovmf: ouptut raw OVMF images
cfabb7a
fstab: mount securityfs
c9e0de9
initrdscripts: create init-nilrt-runmode-initramfs
a6f50ac
initrdscripts: remove init-nilrt-ramfs
88cfe40
images: Add NILRT x64 runmode initramfs
26347ac
docs: update and break out example bb recipe
652c60c
docs/example.bb: suggest using DISTRO_VERSION for PV
3ee544a
recipes-ni: add ni-device-encryption recipe
24bc292
pkggrp-ni-restoremode: remove tpm-tis module
d29db46
pkggrps: add ni-device-encryption to base and initramfs
8b4a3ea
pkgfeed-ni-core: build init-nilrt-runmode-initramfs
ebd6832
nilrt-runmode-rootfs: add ramdisk.xz to bootfs
478655a
grub: boot the runmode initramfs
9d60fb9
grub: suppress error about missing runmode
2eba478
nilrt-runmode-rootfs: cleanup /boot files in arm BSI
rajendra-desai-ni 1eff31f
BSI: stage ARM runmode ITB to prevent bricked targets on BSI failure
Shreejit-03 6d06b0e
nilrt-bsi.postinst: remove pre-8.0 safemode logic
Shreejit-03 154e4c0
pkggrps: clean up tpm package declarations
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| SUMMARY = "foobar - The example project" | ||
| DESCRIPTION = "\ | ||
| foobar is an example project, used when you need to communicate concepts to \ | ||
| developers." | ||
| HOMEPAGE = "https://github.com/ni/meta-nilrt" | ||
| SECTION = "test" | ||
| LICENSE = "MIT" | ||
| LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # RECIPE VARIABLES | ||
| # ============================================================================== | ||
|
|
||
| # If the recipe sources are entirely within OE, we can set the package version | ||
| # to match the DISTRO_VERSION. | ||
| # PV = "${DISTRO_VERSION}" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # SOURCE VARIABLES | ||
| # ============================================================================== | ||
|
|
||
| SRC_URI = "\ | ||
| file://foo-file.1 \ | ||
| file://foo-file.2 \ | ||
| file://foo.initd \ | ||
| " | ||
|
|
||
| S = "${UNPACKDIR}" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # BBCLASSES | ||
| # ============================================================================== | ||
|
|
||
| # UPDATE-RC.D | ||
| inherit update-rc.d | ||
| INITSCRIPT_PARAMS = "default" | ||
| INITSCRIPT = "foo" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # TASKS | ||
| # ============================================================================== | ||
|
|
||
| pkglibdir = "${libdir}/${BPN}" | ||
|
|
||
| do_install () { | ||
| install -d ${D}${sysconfdir}/init.d | ||
| install foo.initd ${D}${sysconfdir}/init.d/foo | ||
|
|
||
| install -d ${D}${pkglibdir} | ||
| install --mode=0755 foo-file.1 ${D}${pkglibdir}/foo-file.1 | ||
| install --mode=0744 foo-file.2 ${D}${pkglibdir}/foo-file.2 | ||
| } | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # PACKAGING | ||
| # ============================================================================== | ||
| # FOO | ||
| RDEPENDS:${PN} = "bash" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # CLASS EXTENSIONS | ||
| # ============================================================================== | ||
| # BBCLASSEXTEND = "native" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason we have if/else here is because we want to support old BSIs without ramdisk?
And that's also the reason we're not adding
ramdisk.xztorunmode_files?I'm wondering if we should also check for existence of
ramdisk_path(if it's set) incheck_valid_os.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct.
ramdisk_pathis set in the bootmode'sbootimage.cfgfile, which is already checked to exist in the validation steps. So I think we can assume that the contents of that file are correct. Legacy runmode bootimage.cfg files don't set ramdisk_path at all.