blob: 3d9ddef15c7419ed4c7a50293baaeb848872558d [file] [log] [blame]
Tomasz Wasilczyk4b2daf72017-04-24 15:05:12 -07001// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Stub radio HAL module, used for tests
Bob Badourd7984cc2021-02-12 20:51:13 -080016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "hardware_libhardware_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["hardware_libhardware_license"],
23}
24
Tomasz Wasilczyk4b2daf72017-04-24 15:05:12 -070025cc_library_shared {
26 name: "radio.fm.default",
27 relative_install_path: "hw",
28 vendor: true,
29 srcs: ["radio_hw.c"],
30 cflags: [
31 "-Wall",
32 "-Wno-unused-parameter",
33 "-Werror",
34 ],
Tri Vo820e9bb2017-06-27 12:30:28 -070035 header_libs: ["libhardware_headers"],
Tomasz Wasilczyk4b2daf72017-04-24 15:05:12 -070036 shared_libs: [
37 "liblog",
38 "libcutils",
39 "libradio_metadata",
40 ],
41}
42
43// Stub radio tool that can be run in native.
44cc_binary {
45 name: "radio_hal_tool",
Steven Morelandc4abc9d2023-07-18 20:53:58 +000046 vendor: true,
Tomasz Wasilczyk4b2daf72017-04-24 15:05:12 -070047 srcs: ["radio_hal_tool.c"],
48 cflags: [
49 "-Wall",
50 "-Wno-unused-parameter",
51 "-Werror",
52 ],
53 shared_libs: [
54 "libcutils",
55 "libhardware",
56 "liblog",
57 "libradio_metadata",
58 ],
59}