Skip to content

Hacking

IPADS edited this page Dec 31, 2019 · 2 revisions

How to import files into the image?

Put files into the your-path-to-penglai-enclave/copy-files directory, the ./docker_cmd.sh build and ./docker_cmd.sh qemu.

You can see your files in the /root in the qemu.

Submodule Tutorial

Please refer the Git Submodule Tutorial from Linux kernel for more information on submodule.

To remove a submodule (dangerous!)

  1. Delete the relevant section from the .gitmodules file.
  2. Stage the .gitmodules changes git add .gitmodules
  3. Delete the relevant section from .git/config.
  4. Run git rm --cached path_to_submodule (no trailing slash).
  5. Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  6. Commit git commit -m "Removed submodule "
  7. Delete the now untracked submodule files rm -rf path_to_submodule

(From: https://gist.github.com/myusuf3/7f645819ded92bda6677)

To update a specific submodule

git submodule update --init submoduleName

For example, git submodule update --init sdk