system/corennnnn
Revisión | 2feb26e9258e698a514b60acb3a95b31c025b329 (tree) |
---|---|
Tiempo | 2016-11-09 00:56:26 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: set default value of ro.hardware to the target name
People usually forget to set the value of androidboot.hardware to
the target name in kernel cmdline which results in boot failure.
The change tries to reduce such an error in the future. The target
name is hardcoded to the image. This eliminates the necessity of
androidboot.hardware.
@@ -60,6 +60,7 @@ include $(BUILD_STATIC_LIBRARY) | ||
60 | 60 | |
61 | 61 | include $(CLEAR_VARS) |
62 | 62 | LOCAL_CPPFLAGS := $(init_cflags) |
63 | +LOCAL_CPPFLAGS += -DTARGET_PRODUCT=\"$(TARGET_PRODUCT)\" | |
63 | 64 | LOCAL_SRC_FILES:= \ |
64 | 65 | bootchart.cpp \ |
65 | 66 | builtins.cpp \ |
@@ -427,7 +427,7 @@ static void export_kernel_boot_props() { | ||
427 | 427 | { "ro.boot.mode", "ro.bootmode", "unknown", }, |
428 | 428 | { "ro.boot.baseband", "ro.baseband", "unknown", }, |
429 | 429 | { "ro.boot.bootloader", "ro.bootloader", "unknown", }, |
430 | - { "ro.boot.hardware", "ro.hardware", "unknown", }, | |
430 | + { "ro.boot.hardware", "ro.hardware", TARGET_PRODUCT, }, | |
431 | 431 | { "ro.boot.revision", "ro.revision", "0", }, |
432 | 432 | }; |
433 | 433 | for (size_t i = 0; i < ARRAY_SIZE(prop_map); i++) { |