README.md 1.89 KB
Newer Older
Yuri Nenakhov's avatar
Yuri Nenakhov committed
1 2 3 4 5 6 7 8 9
# linux-elphel
Extras (drivers, etc.) and patches for the kernel

##Downloading
Code must be located in `poky/` directory. Navigate to `poky/` and run:
```
git clone https://github.com/Elphel/linux-elphel.git
```
##Generating links and headers
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
10
Links between project tree and kernel source tree are generated by Bitbake during 'link' task when using `meta-elphel393`. Some required header files are automatically generated during the build process.
Yuri Nenakhov's avatar
Yuri Nenakhov committed
11 12 13
```
. ./oe-init-build-env
bitbake linux-xlnx -c clean -f
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
14
bitbake linux-xlnx -c link -f
Yuri Nenakhov's avatar
Yuri Nenakhov committed
15 16 17 18 19 20 21 22 23 24 25 26
bitbake linux-xlnx -f
```
##Importing project into Eclipse
Run Eclipse from its location directory and provide additional heap memory to it.
```
./eclipse -vmargs -Xmx4G
```
 - File → Import... → General → Existing Project into Workspace
 - [Next] → Select root directory → Browse → specify project location (`poky/linux-elphel/`) → [OK][Finish]

Project now is imported into Eclipse workspace.

Yuri Nenakhov's avatar
Yuri Nenakhov committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
 - Project → Properties
 - C/C++ General → Preprocessor Include Paths → Entries → GNU C → CDT User Settings
   - [Add...] → Select "Preprocessor macros file" → `linux/include/generated/autoconf.h`[OK]
   - [Add...] → Select "Preprocessor macros file" → `linux/include/linux/compiler.h`[OK]
   - [Add...] → Select "Include file" → `linux/include/linux/kconfig.h`[OK]
 - C/C++ General → Indexer
   - Check “Enable project specific setttings”
   - Check “Enable indexer”
   - Uncheck “Index source files not included in the build”
   - Uncheck “Index unused headers”
   - Check “Index header variants”
   - Uncheck “Index source and header files opened in editor”
   - Uncheck “Allow heuristic resolution of includes”
   - Set size of files to be skipped >100MB (effectively disabling this feature)
   - Uncheck all “Skip…” options
Yuri Nenakhov's avatar
Yuri Nenakhov committed
42 43
 - [OK] to close the Advanced Settings window.
 - Project → C/C++ Index → Rebuild