Define file_contexts for QC specific symlinks

For backward compatibility, define file_contexts for QC specific
symlinks. These are used only if PRODUCT_USE_QC_SPECIFIC_SYMLINKS is
set to 'true'.

Bug: 120578809
Bug: 120117987
Test: lunch blueline_nodap-userdebug; m -j
      check if firmware symlink is created in root.

Change-Id: I7de90cba5be6c2b2b3c64c397efd4cd37089ec40
Merged-In: I7de90cba5be6c2b2b3c64c397efd4cd37089ec40
(cherry picked from commit 3b900d0deee11857d77d2c7125634c93e8144189)
diff --git a/crosshatch-sepolicy.mk b/crosshatch-sepolicy.mk
index b924ed3..f0d8b27 100644
--- a/crosshatch-sepolicy.mk
+++ b/crosshatch-sepolicy.mk
@@ -6,3 +6,8 @@
 BOARD_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/vendor/qcom/sdm845
 BOARD_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/vendor/google
 BOARD_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/vendor/verizon
+
+# vendors for backward compatibility
+ifeq ($(PRODUCT_USE_QC_SPECIFIC_SYMLINKS), true)
+BOARD_SEPOLICY_DIRS += device/google/crosshatch-sepolicy/vendor/qcom/compat
+endif
diff --git a/vendor/qcom/compat/file_contexts b/vendor/qcom/compat/file_contexts
new file mode 100644
index 0000000..ea40315
--- /dev/null
+++ b/vendor/qcom/compat/file_contexts
@@ -0,0 +1,2 @@
+# Keep them for independent system update (b/120578809)
+/firmware                            u:object_r:rootfs:s0