aboutsummaryrefslogtreecommitdiffstats
path: root/bpf
Commit message (Collapse)AuthorAgeFilesLines
* Add bpf_test.go to build and fix testsColin Cross2019-05-173-107/+11
| | | | | | | | | | | | | | | | bpf_test.go was not listed in testSrcs, which meant it was not run during the build, but ran and failed with go test android/soong/... Don't redeclare the cc module types and mutators, use exported functions from cc/testing.go instead, which contain a new dependency needed by cc modules. This reapplies I4542640e8ff08e71565ed50617dbe67d86b29b69 after fixes for mac tests. Test: m Test: go test android/soong/... Change-Id: I3dc3fdedbd7063df4a2e0cadf2a4e0711b1823ad
* Revert "Add bpf_test.go to build and fix the tests"Colin Cross2019-05-142-11/+0
| | | | | | | | This reverts commit 192e3aa6a86c486c976cdd8587d5700aeb304241. Reason for revert: broke mac tests Change-Id: I3f4c679e11d9361dbc2daaf6c89282259b225d61
* Add bpf_test.go to build and fix the testsColin Cross2019-05-142-0/+11
| | | | | | | | | bpf_test.go was not listed in testSrcs, which meant it was not run during the build, but ran and failed with go test android/soong/... Test: m Test: go test android/soong/... Change-Id: I4542640e8ff08e71565ed50617dbe67d86b29b69
* Fix relative path of bpf modulesColin Cross2019-04-101-1/+1
| | | | | | | | | | Using bpf as test data installs the module into a strange subdirectory, clear the Rel() value before exporting it as a SourceFileProducer. Bug: 130206035 Test: m vts_test_binary_bpf_module Change-Id: Ifdae90d11b15d65c097562d7d6985a8a1dca2bfd
* Replace ctx.ExpandSources with android.PathsForModuleSrcColin Cross2019-03-201-1/+1
| | | | | | | | | | | Move the logic from ctx.ExpandSources into android.PathsForModuleSrc and ctx.ExpandSource into android.PathForModuleSrc, and deprecate them. When combined with the pathDepsMutator this will let all properties that take source paths also take filegroups or genrule outputs, as long as they are tagged with `android:"path"`. Test: All soong tests Change-Id: I01625e76b5da19240e9649bf26a014eeeafcab8f
* Annotate paths and deprecate ExtractSource(s)DepsColin Cross2019-03-071-5/+1
| | | | | | | | | Add `android:"path"` to all properties that take paths to source files, and remove the calls to ExtractSource(s)Deps, the pathsDepsMutator will add the necessary SourceDepTag dependency. Test: All soong tests Change-Id: I488ba1a5d680aaa50b04fc38acf693e23c6d4d6d
* Add common BPF helper to include pathJoel Fernandes (Google)2019-02-121-0/+1
| | | | | | | | | | | | All BPF programs need helper header files. These end up being duplicated. Let us add a path to the common BPF helper to the search path so that it can be used across projects. No functional change to the final system image, only a build change. Bug: 122665156 Change-Id: Ieee838df98258213efa24d74a12e069f056c66c1 Signed-off-by: Joel Fernandes <joelaf@google.com>
* Make bpf implement SourceFileProducer.Jaewoong Jung2018-12-172-0/+200
| | | | | | | | | This allows other modules depend on bpf object outputs via the data property. Bug: 120246361 Test: bpf_test.go Change-Id: I2ba9b9fea4d60f896d16f34053eb04513eae30ea
* Add bpf module typeColin Cross2018-05-292-0/+165
Add a module type for compiling .c to .o using clang --target=bpf. Bug: 72981744 Test: m Change-Id: Ie5712bfabe34901a84ed33737053306ca56ebeb4 Merged-In: Ie5712bfabe34901a84ed33737053306ca56ebeb4 (cherry picked from commit 3ba736a7e162a913973baab7861bf62071f60428)