Permalink
Browse files

Patch init.rc instead of forking it

  • Loading branch information...
1 parent 2ecde78 commit 8895c2890ddd849d09fea180cd5c1e8e4de1eb5f @michaelwu michaelwu committed May 3, 2012
Showing with 19 additions and 496 deletions.
  1. +6 −2 Android.mk
  2. +0 −494 init.rc
  3. +13 −0 init.rc.patch
View
@@ -5,9 +5,14 @@ include $(CLEAR_VARS)
LOCAL_MODULE := init.rc
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := init.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
+
+$(LOCAL_BUILT_MODULE):
+ mkdir -p $(@D)
+ echo import /init.b2g.rc > $@
+ cat system/core/rootdir/init.rc >> $@
+ patch $@ gonk-misc/init.rc.patch
endif
@@ -28,7 +33,6 @@ LOCAL_SRC_FILES := httpd.conf
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
include $(BUILD_PREBUILT)
-
include $(CLEAR_VARS)
LOCAL_MODULE := fakeperm
LOCAL_MODULE_TAGS := optional eng
Oops, something went wrong.

2 comments on commit 8895c28

Contributor

mvines replied May 3, 2012

welcome to the dark side! :)

Contributor

michaelwu replied May 3, 2012

Nope doesn't count, I'm not patching repos. ;)

Please sign in to comment.