Switch to soong Android.bp files
* Delete all mk files.
* Move linux-firmware directory out of common which is no
longer needed.
* Build linux-firmware and qcom firmware binaries in their
own namespace. This will help import linux-firmware
namespace to non-qcom target builds.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/linaro_devices/linux-firmware/qcom/Android.bp b/linaro_devices/linux-firmware/qcom/Android.bp
new file mode 100644
index 0000000..b34961f
--- /dev/null
+++ b/linaro_devices/linux-firmware/qcom/Android.bp
@@ -0,0 +1,392 @@
+// Adreno
+// db845c
+prebuilt_firmware {
+ name: "a630_gmu.bin",
+ vendor: true,
+ src: "a630_gmu.bin",
+ relative_install_path: "qcom",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "a630_sqe.fw",
+ vendor: true,
+ src: "a630_sqe.fw",
+ relative_install_path: "qcom",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "a630_zap.mbn",
+ vendor: true,
+ src: "sdm845/a630_zap.mbn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// 5.4 kernel loads a630_zap.mdt
+prebuilt_firmware {
+ name: "a630_zap.mdt",
+ vendor: true,
+ src: "sdm845/a630_zap.mbn",
+ relative_install_path: "qcom",
+ notice: "../LICENSE.qcom",
+}
+
+// rb5
+prebuilt_firmware {
+ name: "a650_gmu.bin",
+ vendor: true,
+ src: "a650_gmu.bin",
+ relative_install_path: "qcom",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "a650_sqe.fw",
+ vendor: true,
+ src: "a650_sqe.fw",
+ relative_install_path: "qcom",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "a650_zap.mbn",
+ vendor: true,
+ src: "sm8250/a650_zap.mbn",
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+// adsp
+// db845c
+prebuilt_firmware {
+ name: "adsp.mbn.sdm845",
+ vendor: true,
+ src: "sdm845/adsp.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// 5.10 kernel loads adsp.mdt
+prebuilt_firmware {
+ name: "adsp.mdt",
+ vendor: true,
+ src: "sdm845/adsp.mbn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "adspr.jsn.sdm845",
+ vendor: true,
+ src: "sdm845/adspr.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "adspua.jsn.sdm845",
+ vendor: true,
+ src: "sdm845/adspua.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// rb5
+prebuilt_firmware {
+ name: "adsp.mbn.sm8250",
+ vendor: true,
+ src: "sm8250/adsp.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "adspr.jsn.sm8250",
+ vendor: true,
+ src: "sm8250/adspr.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "adspua.jsn.sm8250",
+ vendor: true,
+ src: "sm8250/adspua.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+// cdsp
+// db845c
+prebuilt_firmware {
+ name: "cdsp.mbn.sdm845",
+ vendor: true,
+ src: "sdm845/cdsp.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// 5.10 kernel loads cdsp.mdt
+prebuilt_firmware {
+ name: "cdsp.mdt",
+ vendor: true,
+ src: "sdm845/cdsp.mbn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+
+prebuilt_firmware {
+ name: "cdspr.jsn.sdm845",
+ vendor: true,
+ src: "sdm845/cdspr.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// rb5
+prebuilt_firmware {
+ name: "cdsp.mbn.sm8250",
+ vendor: true,
+ src: "sm8250/cdsp.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "cdspr.jsn.sm8250",
+ vendor: true,
+ src: "sm8250/cdspr.jsn",
+ filename_from_src: true,
+ relative_install_path: "qcom/sm8250",
+ notice: "../LICENSE.qcom",
+}
+
+// modem
+// db845c
+prebuilt_firmware {
+ name: "mba.mbn",
+ vendor: true,
+ src: "sdm845/mba.mbn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "modem.mbn",
+ vendor: true,
+ src: "sdm845/modem.mbn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "modemuw.jsn",
+ vendor: true,
+ src: "sdm845/modemuw.jsn",
+ relative_install_path: "qcom/sdm845",
+ notice: "../LICENSE.qcom",
+}
+
+// venus
+// db845c
+prebuilt_firmware {
+ name: "venus.b00.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.b00",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b01.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.b01",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b02.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.b02",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b03.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.b03",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b04.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.b04",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.mbn.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.mdt.sdm845",
+ vendor: true,
+ src: "venus-5.2/venus.mdt",
+ filename_from_src: true,
+ relative_install_path: "qcom/venus-5.2",
+ notice: "../LICENSE.qcom",
+}
+
+// rb5
+prebuilt_firmware {
+ name: "venus.b00.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b00",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b01.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b01",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b02.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b02",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b03.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b03",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b04.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b04",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b05.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b05",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b06.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b06",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b07.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b07",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b08.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b08",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b09.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b09",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b10.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b10",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.b19.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.b19",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.mbn.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.mbn",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}
+
+prebuilt_firmware {
+ name: "venus.mdt.sm8250",
+ vendor: true,
+ src: "vpu-1.0/venus.mdt",
+ filename_from_src: true,
+ relative_install_path: "qcom/vpu-1.0",
+ notice: "../LICENSE.qcom",
+}