• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revisión2feb26e9258e698a514b60acb3a95b31c025b329 (tree)
Tiempo2016-11-09 00:56:26
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

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.

Cambiar Resumen

Diferencia incremental

--- a/init/Android.mk
+++ b/init/Android.mk
@@ -60,6 +60,7 @@ include $(BUILD_STATIC_LIBRARY)
6060
6161 include $(CLEAR_VARS)
6262 LOCAL_CPPFLAGS := $(init_cflags)
63+LOCAL_CPPFLAGS += -DTARGET_PRODUCT=\"$(TARGET_PRODUCT)\"
6364 LOCAL_SRC_FILES:= \
6465 bootchart.cpp \
6566 builtins.cpp \
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -427,7 +427,7 @@ static void export_kernel_boot_props() {
427427 { "ro.boot.mode", "ro.bootmode", "unknown", },
428428 { "ro.boot.baseband", "ro.baseband", "unknown", },
429429 { "ro.boot.bootloader", "ro.bootloader", "unknown", },
430- { "ro.boot.hardware", "ro.hardware", "unknown", },
430+ { "ro.boot.hardware", "ro.hardware", TARGET_PRODUCT, },
431431 { "ro.boot.revision", "ro.revision", "0", },
432432 };
433433 for (size_t i = 0; i < ARRAY_SIZE(prop_map); i++) {