summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2017-09-19 20:06:47 -0500
committerPraneeth Bajjuri2017-09-19 20:06:47 -0500
commitf0df0744f047d408195559c3fcf71cdeb9af40bf (patch)
tree711246350b3f45d48b664bec0015a4501228f2e0
parentcafd86d16111003c8ab15214c6e776e0beef016c (diff)
downloaddevice-ti-am57xevm-f0df0744f047d408195559c3fcf71cdeb9af40bf.tar.gz
device-ti-am57xevm-f0df0744f047d408195559c3fcf71cdeb9af40bf.tar.xz
device-ti-am57xevm-f0df0744f047d408195559c3fcf71cdeb9af40bf.zip
am57xevm: code cleanup
misc code cleanup and remove unapplicable services after syncing with jacinto6evm project Change-Id: Ie447de97a03d5a93a5995a02b904bceb327ee65c Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--BoardConfig.mk8
-rw-r--r--device.mk28
-rw-r--r--full_am57xevm.mk3
-rw-r--r--init.am57xevmboard.rc19
-rw-r--r--sepolicy/init.te3
5 files changed, 21 insertions, 40 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index f450443..d569606 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -33,8 +33,8 @@ TARGET_CPU_VARIANT := cortex-a15
33 33
34ENABLE_CPUSETS := true 34ENABLE_CPUSETS := true
35 35
36#BOARD_HAVE_BLUETOOTH := false 36#BOARD_HAVE_BLUETOOTH := true
37#BOARD_HAVE_BLUETOOTH_TI := false 37#BOARD_HAVE_BLUETOOTH_TI := true
38#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/am57xevm/bluetooth 38#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/ti/am57xevm/bluetooth
39TARGET_NO_BOOTLOADER := true 39TARGET_NO_BOOTLOADER := true
40 40
@@ -90,8 +90,8 @@ VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
90SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000 90SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
91 91
92BOARD_VENDOR_KERNEL_MODULES := \ 92BOARD_VENDOR_KERNEL_MODULES := \
93 $(KERNELDIR)/drivers/scsi/scsi_mod.ko\ 93 $(KERNELDIR)/drivers/scsi/scsi_mod.ko \
94 $(KERNELDIR)/drivers/scsi/sd_mod.ko\ 94 $(KERNELDIR)/drivers/scsi/sd_mod.ko \
95 $(KERNELDIR)/drivers/usb/storage/usb-storage.ko 95 $(KERNELDIR)/drivers/usb/storage/usb-storage.ko
96# $(KERNELDIR)/drivers/net/wireless/ti/wl18xx/wl18xx.ko \ 96# $(KERNELDIR)/drivers/net/wireless/ti/wl18xx/wl18xx.ko \
97# $(KERNELDIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \ 97# $(KERNELDIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \
diff --git a/device.mk b/device.mk
index 82f7112..6bdbb29 100644
--- a/device.mk
+++ b/device.mk
@@ -21,20 +21,20 @@ LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
21endif 21endif
22 22
23PRODUCT_PACKAGES += \ 23PRODUCT_PACKAGES += \
24 android.hardware.wifi@1.0-service \ 24 android.hardware.wifi@1.0-service \
25 android.hardware.graphics.allocator@2.0-impl \ 25 android.hardware.graphics.allocator@2.0-impl \
26 android.hardware.graphics.allocator@2.0-service \ 26 android.hardware.graphics.allocator@2.0-service \
27 android.hardware.graphics.mapper@2.0-impl \ 27 android.hardware.graphics.mapper@2.0-impl \
28 android.hardware.memtrack@1.0-impl \ 28 android.hardware.memtrack@1.0-impl \
29 android.hardware.usb@1.0-service \ 29 android.hardware.usb@1.0-service \
30 android.hardware.power@1.0-impl \ 30 android.hardware.power@1.0-impl \
31 android.hardware.audio@2.0-impl \ 31 android.hardware.audio@2.0-impl \
32 android.hardware.audio@2.0-service \ 32 android.hardware.audio@2.0-service \
33 android.hardware.audio.effect@2.0-impl \ 33 android.hardware.audio.effect@2.0-impl \
34 android.hardware.broadcastradio@1.0-impl \ 34 android.hardware.broadcastradio@1.0-impl \
35 android.hardware.soundtrigger@2.0-impl \ 35 android.hardware.soundtrigger@2.0-impl \
36 android.hardware.keymaster@3.0-impl \ 36 android.hardware.keymaster@3.0-impl \
37 android.hardware.keymaster@3.0-service 37 android.hardware.keymaster@3.0-service
38 38
39PRODUCT_COPY_FILES := \ 39PRODUCT_COPY_FILES := \
40 $(LOCAL_KERNEL):kernel \ 40 $(LOCAL_KERNEL):kernel \
diff --git a/full_am57xevm.mk b/full_am57xevm.mk
index debc8f3..e8f44a9 100644
--- a/full_am57xevm.mk
+++ b/full_am57xevm.mk
@@ -23,9 +23,6 @@
23 23
24# Inherit from those products. Most specific first. 24# Inherit from those products. Most specific first.
25 25
26PRODUCT_COPY_FILES += \
27 device/generic/car/common/bootanimations/bootanimation-832.zip:system/media/bootanimation.zip
28
29$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) 26$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
30$(call inherit-product, device/ti/am57xevm/device.mk) 27$(call inherit-product, device/ti/am57xevm/device.mk)
31 28
diff --git a/init.am57xevmboard.rc b/init.am57xevmboard.rc
index a2cebd6..71f2291 100644
--- a/init.am57xevmboard.rc
+++ b/init.am57xevmboard.rc
@@ -47,9 +47,7 @@ on fs
47on late-init 47on late-init
48# Load modules 48# Load modules
49 exec u:r:modprobe:s0 -- /system/bin/modprobe -a -d \ 49 exec u:r:modprobe:s0 -- /system/bin/modprobe -a -d \
50 /vendor/lib/modules scsi_mod.ko usb-storage.ko sd_mod.ko \ 50 /vendor/lib/modules scsi_mod.ko usb-storage.ko sd_mod.ko
51
52# /vendor/lib/modules wl18xx.ko wlcore.ko wlcore_sdio.ko \
53 51
54service pvrsrvinit /vendor/bin/pvrsrvinit 52service pvrsrvinit /vendor/bin/pvrsrvinit
55 class core 53 class core
@@ -118,18 +116,3 @@ service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
118 class main 116 class main
119 disabled 117 disabled
120 oneshot 118 oneshot
121
122service lad_dra7xx /system/bin/lad_dra7xx -g
123 class main
124 user media
125 group system
126 disabled
127 oneshot
128
129# service radio_app /system/bin/RadioApp -h eth
130# class main
131# user media
132# group system inet
133# disabled
134# oneshot
135
diff --git a/sepolicy/init.te b/sepolicy/init.te
index ace2106..06da5fe 100644
--- a/sepolicy/init.te
+++ b/sepolicy/init.te
@@ -2,7 +2,8 @@
2allow init self:capability sys_module; 2allow init self:capability sys_module;
3#Create symlinks for storage 3#Create symlinks for storage
4allow init tmpfs:lnk_file create_file_perms; 4allow init tmpfs:lnk_file create_file_perms;
5 5# Allow module insertion
6allow init system_file:system module_load;
6# Configfs 7# Configfs
7allow init configfs:file write; 8allow init configfs:file write;
8allow init configfs:lnk_file { create unlink } ; 9allow init configfs:lnk_file { create unlink } ;