Import Existing Projects from GIT

The TimeStorm IDE provides support for the Git version control system. You can easily perform the necessary Git commands like staging, commit, merge, rebase, pull and push by following the Team collaboration through GIT (https://linuxlink.timesys.com/docs/wiki/engineering/Team_Collaboration_Through_GIT)

This page will show you how to point to the existing GIT repository in the TimeStorm and Import the C/C++/Kernel Project/Linux Kernel Module Projects from GIT.

The Git Import feature allows you to easily configure most of the settings required to make a project workable immediately after it is imported in the TimeStorm IDE.

To Import GIT Project, Open TimeStorm and click on File → Import. The Import Wizard will open. Expand GIT and select projects from GIT as shown below.

Click on the Next button to select Repository sources as shown below.

You can point to repository sources as Existing local repository/Clone URI. To illustrate, Clone URI is selected and clicked on the Next button as shown below.

In the Source GIT Repository wizard, enter URI which will autofill the Host, Repository Path under location. And Protocol (HTTPS, HTTP, FTP, GIT, SFTP, FILE, SSH), Port in the Connection part. Similarly, authentication details UserName, Password in the Authentication part as shown below.

Click on the Next button to select the branch. In the Branch Selection wizard will display the list of branches available in the pointed GIT repository and click on the Next button as shown below.

Local Destination wizard will auto-fill the fields based on the previous wizard’s data. If needed we can modify the Destination directory, Initial Branch, Clone Submodules, remote name as shown below.

Click on the Next button to display the ‘Select a wizard to use for importing projects’ wizard with four different types of wizards for import projects.

  1. Import existing Eclipse project
  2. Import using the New Project wizard
  3. Import as general project
  4. Import using the TimeStorm New Project wizard

In the above four options select ‘Import using the TimeStorm New Project Wizard’ to import as TimeStorm project and click on the Next button as shown below.

Import Projects Wizard will display the list of projects which it supports:

  1. C Project
  2. C++ Project
  3. Kernel Project
  4. Linux Kernel Module

1. Import C Project: To import C Project, select the C Project radio button and click on the Finish button to open the C Project Wizard as shown below.

In the C Project Wizard, ‘Project Name’, ‘Location’, ‘Generate makefiles automatically’ fields will autofill. Select the Project Type (Executable, Shared, Static).

Note: You can uncheck the Generate makefiles automatically checkbox to use the existing makefile in the import project if any.

To Illustrate, the Project Type ‘Executable’ radio button is selected as shown below.

In the SDK Type select Factory/Yocto/Other SDK. To illustrate the selected Factory SDK, all the factory SDKs installed in the host machine will load to the ‘Toolchain from SDK’ dropdown. Select any one SDK from the dropdown as per your requirements and click on the Finish button to create the project in the Project Explorer as shown below.

Run/Debug/Profile the C Project by following the TimeStorm User Manual.

2. Import C++ project: To import C++ Project, select the C++ Project radio button and click on the Finish button to open the C++ Project Wizard as shown below.

In the C++ Project Wizard, ‘Project Name’, ‘Location’, ‘Generate makefiles automatically’ fields will autofill. Select the Project Type (Executable, Shared, Static).

Note: Following example given for Shared, others static and executable can be configured using the same procedure.

Note:

You can uncheck the Generate makefiles automatically checkbox to use the existing makefile in the import project if any.

To Illustrate, the Project Type ‘Shared’ radio button is selected as shown below.

In the SDK Type select Factory/Yocto/Other SDK. To illustrate selected Yocto SDK, all the Yocto SDKs installed in the host machine will load to the Toolchain from the SDK dropdown. Select any one SDK from the dropdown as per your requirements and click on the Finish button to create the project in the Project Explorer as shown below.

Run/Debug/Profile the C++ Project by following the TimeStorm User Manual.

3. Import Kernel Project: To import Kernel Project, select the Kernel Project radio button and click on the Finish button to open the Kernel Project Wizard as shown below.

In the Linux Kernel Project Wizard, enter ‘Project Name’, and in the SDK Type select Factory/Yocto/Other SDK. To illustrate selected Yocto SDK, all the Yocto SDKs installed in the host machine will load to the ‘Toolchain from SDK’ dropdown. Select any one SDK from the dropdown as per your requirements and Kernel Source Path, Kernel Config values will auto-fill as per previous wizards as shown below.

Click on the Next button to manage the Kernel Source. You can create a kernel project by making a copy of your existing kernel sources or use your kernel sources. This page allows you to choose how you want to manage your kernel sources. You can create the project in your kernel source location or at a different location. You can also choose to create the project in the TimeStorm workspace or at a different location as shown below.

Click on the Next button for Kernel Build Settings. The kernel build settings page allows you to enter the architecture and make targets. If the SDK selected on the previous page has this information then these values are filled in. Architecture, load address, parallel make are mandatory, and ‘Default Make Target’ is optional. You can choose whether to build the kernel modules along with the kernel. The cross-compile prefix for the kernel build is set based on the selected SDK.

Click on the Next button for Build Output. Allows you to manage the kernel build output. You can save the kernel build output in a subdirectory in a kernel project or an external directory or subdirectory as shown below.

Click on the Finish button to create Kernel Project in the Project Explorer as shown below.

Build, Run and Debug the kernel by following the TimeStorm User Manual.

4. Linux Kernel Module: To import Linux Kernel Module Project, select the Linux Kernel Module radio button and click on the Finish button to open the Linux Kernel Module Wizard as shown below.

Click on the Finish button to point to the Kernel Source. Kernel module development requires the location of the sources and a kernel image. You can choose a kernel project that is already created in your workspace (recommended) or you can choose an external directory that contains the kernel sources as shown below.

Click on the Next button to point to the SDK. Select the SDK Type and choose the SDK you want to use with the kernel module as shown below. Be sure to select the toolchain that is used with the kernel project/kernel sources.

Click on the finish button to create Linux Kernel Module Project as shown below.

Build, Run and Debug the kernel module by following the TimeStorm User Manual.