Yes, it introduces variability yet it might also be required. For example; default init.rc imports "import /init.${ro.hardware}.rc" to include OEM specific stuffs.
The main purpose seems to be "provide enough margin to OEM" for their configurations. adb shell getprop gives [ro.hardware]: [qcom] in my case. AOSP has to contain both common file and way to include vendor specific file. On Tue, Feb 4, 2014 at 9:45 PM, Kyle Russell <krussell7...@gmail.com> wrote: > I've not seen anywhere that ro.hardware gets set based on build.prop. > init sets ro.hardware based on the "Hardware" entry in /proc/cpuinfo (or > an optional kernel command line argument), which is not based on a > particular Android build, but underlying CPU arch. When building Android > for different devices, it seems like this introduces an additional > dependency on Android's build to make sure you install the fstab file with > the appropriate name. Why not just leave the name "vold.fstab"? > > On Tuesday, February 4, 2014 10:39:09 AM UTC-5, rishi gupta wrote: >> >> In simple terms, ro.hardware is constant value whose value can be seen >> from build.prop. >> ro.hardware is mainly used for setting many properties, configuration >> files etc. >> >> >> On Monday, February 3, 2014 8:37:36 PM UTC+5:30, Kyle Russell wrote: >>> >>> Why did vold switch from loading the filename "vold.fstab" to >>> "fstab.${ro.hardware}"? It seems like there's only one fstab file that >>> ever gets loaded, and it's difficult to determine the "ro.hardware" >>> property value during a build, which is when you need to know the filename >>> to install the fstab file into an image. (In other words, the filename >>> change seems to introduce more variability, especially during the build, >>> that doesn't really buy anything.) Can anyone help explain? >>> >> -- > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > > --- > You received this message because you are subscribed to a topic in the > Google Groups "android-porting" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-porting/2gQUHLsV19c/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > android-porting+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.