setup-makefiles.sh 664 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. #
  3. # Copyright (C) 2016 The CyanogenMod Project
  4. # Copyright (C) 2017-2020 The LineageOS Project
  5. #
  6. # SPDX-License-Identifier: Apache-2.0
  7. #
  8. function vendor_imports() {
  9. cat << EOF >> "$1"
  10. "device/xiaomi/sm8450-common",
  11. "hardware/qcom-caf/sm8450",
  12. "hardware/xiaomi",
  13. "vendor/qcom/opensource/commonsys-intf/display",
  14. EOF
  15. }
  16. # If we're being sourced by the common script that we called,
  17. # stop right here. No need to go down the rabbit hole.
  18. if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
  19. return
  20. fi
  21. set -e
  22. export DEVICE=cupid
  23. export DEVICE_COMMON=sm8450-common
  24. export VENDOR=xiaomi
  25. "./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"