OSDN Git Service

build: remove two properties from build.prop
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 31 Oct 2017 09:40:05 +0000 (17:40 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 31 Oct 2017 09:40:05 +0000 (17:40 +0800)
Don't set ro.product.manufacturer and ro.product.model
in build.prop. We will set them at runtime.

build/tasks/system.mk

index bffb044..6b03ed2 100644 (file)
@@ -1,3 +1,8 @@
+$(PRODUCT_OUT)/build.prop: $(INSTALLED_BUILD_PROP_TARGET)
+       sed -E '/ro.product.manufacturer|ro.product.model/d' $< > $@ && cat $@ > $<
+
+$(BUILT_SYSTEMIMAGE): $(PRODUCT_OUT)/build.prop
+
 ifneq ($(MKSQUASHFS),)
 $(PRODUCT_OUT)/system.sfs: $(BUILT_SYSTEMIMAGE) | $(SIMG2IMG)
        $(hide) $(SIMG2IMG) $< $@