aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: b6a307979d1657148daeed382c3645542c9e3249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# meta-spdxscanner
1. fossdriver support (recommend)
2. SPDX scanner(DoSOCSv2) support

# This layer depends on:

- openembedded-core
- meta-openembedded/meta-oe
- meta-openembedded/meta-python

# How to use

1.  fossdriver-host.class 
- inherit the folowing class in your conf/local.conf for all of recipes or
  in some recipes which you want.

```
  INHERIT += "fossdriver-host"
  SPDX_DEPLOY_DIR = "${SPDX_DEST_DIR}"
```
Note
  If you want to use fossdriver-host.bbclass, you have to make sure that  fossdriver has been installed on your host and it works wekk.
  Please reference to https://github.com/fossology/fossdriver.
  
2. dosocs-host.bbclass
- inherit the folowing class in your conf/local.conf for all of recipes or
  in some recipes which you want.

```
  INHERIT += "dosocs-host"
  SPDX_DEPLOY_DIR = "${SPDX_DEST_DIR}"
```

Note
  - If you want to use fossdriver-host.bbclass, you have to make sure that DoSOCSv2 has been installed on your host and it works wekk.
    Please reference to https://github.com/DoSOCSv2/DoSOCSv2.
  - To make DoSOCSv2 support multi task, Add PostgreSQL configuration for DoSOCSv2.
  
3. dosocs.bbclass
- inherit the folowing class in your conf/local.conf for all of recipes or
  in some recipes which you want.

```
  INHERIT += "dosocs"
  SPDX_DEPLOY_DIR = "${SPDX_DEST_DIR}"
```

Note 
  - Default, DoSOCSv2 uses SQLite for database, so dosocs.bbclass doesn't support multi task of do_spdx.