Skip to content
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

VSCode Plugin for Nuclei SDK #24

Open
fanghuaqi opened this issue Dec 17, 2020 · 2 comments
Open

VSCode Plugin for Nuclei SDK #24

fanghuaqi opened this issue Dec 17, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@fanghuaqi
Copy link
Member

Maybe we can have a VSCode plugin for nuclei sdk in future, which provide the following features:

  • Automatically download or use existing Nuclei SDK source code base
  • Create or use existing nuclei-sdk project as templates
  • Create project wizard support choosen of SoC, Board, Core, Download
  • Support build and debug application directly in VSCode using Makefile build system

Currently we have platformio-nuclei which also provide Nuclei SDK intergation in VSCode, but maybe there will be a good try to have a native plugin to directly use Nuclei SDK build system.

@fanghuaqi fanghuaqi added the enhancement New feature or request label Dec 17, 2020
@jardinimf
Copy link

Microsoft now have a preview tool for Makefile projects (microsoft/vscode-makefile-tools here at github).

I was able to use nuclei-sdk on VScode without need of setup_config(.sh/.bat), only needed changes are in "$(NUCLEI_SDK_ROOT)/Build/Makefile.conf" line 7:

from: NUCLEI_RISCV_GCC_ROOT ?= $(NUCLEI_SDK_TOOL_ROOT)/$(COMPILE_PREFIX)gcc
to: NUCLEI_RISCV_GCC_ROOT ?= $(NUCLEI_SDK_TOOL_ROOT)/gcc

After that, add the path to Nuclei's gcc as "NUCLEI_SDK_TOOL_ROOT=..." instead of "NUCLEI_TOOL_ROOT=..." in the program Makefile, or in Makefile.local (together with program Makefile) or as Makefile.global in "nuclei-sdk/Build"

hint: the default search path for NUCLEI_SDK_TOOL_ROOT is $(NUCLEI_SDK_ROOT)/prebuilt_tools

I'm following the recommended dir strutct of "Nuclei/gcc" and "Nuclei/openocd" for nuclei tools, like in the README.md

  • this change also works for building outside VScode

@fanghuaqi
Copy link
Member Author

Thank you @jardinimf for your detailed investigation, I will accept you suggestion and update the Makefile later.

fanghuaqi added a commit that referenced this issue Mar 15, 2021
Now you can set NUCLEI_SDK_TOOL_ROOT variable to where
your toolchain located in your Makefile.global or
Makefile.local or Makefile.

Such as: (in Build/Makefile.global, this file should be created by you)
NUCLEI_SDK_TOOL_ROOT=/home/hqfang/mysofts/NucleiStudio_IDE_202102/NucleiStudio/toolchain

Issue see #24

Signed-off-by: Huaqi Fang <[email protected]>
@fanghuaqi fanghuaqi self-assigned this Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants