diff options
| author | Colin Cross <ccross@android.com> | 2018-05-17 11:17:01 -0700 |
|---|---|---|
| committer | Chenbo Feng <fengc@google.com> | 2018-05-18 22:25:30 +0000 |
| commit | 73de8a880742d9a96544ba63188e532f86199011 (patch) | |
| tree | b389b1992f9476247e6fc7435b396fb7640079f4 /bpf/Android.bp | |
| parent | 61e3d778e010c69a5c0735ab2bb363dcf12fc5d1 (diff) | |
| download | build_soong-73de8a880742d9a96544ba63188e532f86199011.tar.gz build_soong-73de8a880742d9a96544ba63188e532f86199011.tar.bz2 build_soong-73de8a880742d9a96544ba63188e532f86199011.zip | |
Add bpf module type
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)
Diffstat (limited to 'bpf/Android.bp')
| -rw-r--r-- | bpf/Android.bp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bpf/Android.bp b/bpf/Android.bp new file mode 100644 index 00000000..7bd4d443 --- /dev/null +++ b/bpf/Android.bp @@ -0,0 +1,30 @@ +// +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +bootstrap_go_package { + name: "soong-bpf", + pkgPath: "android/soong/bpf", + deps: [ + "blueprint", + "blueprint-proptools", + "soong-android", + "soong-cc-config", + ], + srcs: [ + "bpf.go", + ], + pluginFor: ["soong_build"], +} |
