Skip to content

Commit 5dea710

Browse files
gmillzPRJosh
authored andcommitted
AOSPB initial
Change-Id: I5253588a2c754a44da7d72788d5c29f0630ee8d5
1 parent 32c8543 commit 5dea710

11 files changed

Lines changed: 50 additions & 78 deletions

File tree

core/Makefile

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ endif
220220
$(hide) TARGET_BUILD_TYPE="$(TARGET_BUILD_VARIANT)" \
221221
TARGET_BUILD_FLAVOR="$(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT)" \
222222
TARGET_DEVICE="$(TARGET_VENDOR_DEVICE_NAME)" \
223-
SLIM_DEVICE="$(TARGET_DEVICE)" \
223+
AOSPB_DEVICE="$(TARGET_DEVICE)" \
224224
PRODUCT_NAME="$(TARGET_VENDOR_PRODUCT_NAME)" \
225225
PRODUCT_BRAND="$(PRODUCT_BRAND)" \
226226
PRODUCT_DEFAULT_LOCALE="$(call get-default-product-locale,$(PRODUCT_LOCALES))" \
@@ -1871,7 +1871,7 @@ endif
18711871
ifeq ($(WITH_GMS),true)
18721872
$(INTERNAL_OTA_PACKAGE_TARGET): backuptool := false
18731873
else
1874-
ifneq ($(SLIM_BUILD),)
1874+
ifneq ($(AOSPB_BUILD),)
18751875
$(INTERNAL_OTA_PACKAGE_TARGET): backuptool := true
18761876
else
18771877
$(INTERNAL_OTA_PACKAGE_TARGET): backuptool := false
@@ -1880,7 +1880,7 @@ endif
18801880

18811881
BOOT_ZIP_FROM_IMAGE_SCRIPT := ./build/tools/releasetools/boot_flash_from_image
18821882
KERNEL_PATH := $(TARGET_KERNEL_SOURCE)/arch/arm/configs/$(TARGET_KERNEL_CONFIG)
1883-
#BOOT_ZIP_OUT_FILE := Slim-Kernel-$(DEVICE).zip
1883+
#BOOT_ZIP_OUT_FILE := AOSPB-Kernel-$(DEVICE).zip
18841884

18851885
ifeq ($(TARGET_OTA_ASSERT_DEVICE),)
18861886
$(INTERNAL_OTA_PACKAGE_TARGET): override_device := auto
@@ -1913,25 +1913,14 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
19131913
$(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \
19141914
$(BUILT_TARGET_FILES_PACKAGE) $@
19151915

1916-
SLIM_TARGET_PACKAGE := $(PRODUCT_OUT)/$(SLIM_MOD_VERSION).zip
1916+
AOSPB_TARGET_PACKAGE := $(PRODUCT_OUT)/$(AOSPB_MOD_VERSION).zip
19171917

19181918
.PHONY: otapackage bacon bootzip
19191919
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
19201920
bacon: otapackage
1921-
$(hide) ln -f $(INTERNAL_OTA_PACKAGE_TARGET) $(SLIM_TARGET_PACKAGE)
1922-
$(hide) $(MD5SUM) $(SLIM_TARGET_PACKAGE) > $(SLIM_TARGET_PACKAGE).md5sum
1923-
@echo -e ${CL_SLIM}" _______________________________________________ "${CL_SLIM}
1924-
@echo -e ${CL_SLIM}" / www.slimroms.org | "${CL_SLIM}
1925-
@echo -e ${CL_SLIM}" / _____________________________________________| "${CL_SLIM}
1926-
@echo -e ${CL_SLIM}" / / "${CL_SLIM}
1927-
@echo -e ${CL_SLIM}" / / _ _ "${CL_SGRY}" ______ "${CL_SLIM}
1928-
@echo -e ${CL_SLIM}" / / | |(_) "${CL_SGRY}"(_____ \ "${CL_SLIM}
1929-
@echo -e ${CL_SLIM}" / / | | _ _____ "${CL_SGRY}"_____) )___ _____ ___ "${CL_SLIM}
1930-
@echo -e ${CL_SLIM}" _____________________/ / | || | |"${CL_SGRY}" __ // _ \| |/___) "${CL_SLIM}
1931-
@echo -e ${CL_SLIM}" | / | || | | | |"${CL_SGRY}" | \ \ |_| | | | |___ | "${CL_SLIM}
1932-
@echo -e ${CL_SLIM}" |_______________________/ \_)_|_|_|_|"${CL_SGRY}"_| |_\___/|_|_|_(___/ "${CL_SLIM}
1933-
@echo -e ${CL_SLIM}" "${CL_SLIM}
1934-
@echo -e ${CL_CYN}"Package Complete: $(SLIM_TARGET_PACKAGE)"${CL_RST}
1921+
$(hide) ln -f $(INTERNAL_OTA_PACKAGE_TARGET) $(AOSPB_TARGET_PACKAGE)
1922+
$(hide) $(MD5SUM) $(AOSPB_TARGET_PACKAGE) > $(AOSPB_TARGET_PACKAGE).md5sum
1923+
@echo -e ${CL_CYN}"Package Complete: $(AOSPB_TARGET_PACKAGE)"${CL_RST}
19351924

19361925
bootzip: bootimage
19371926
$(BOOT_ZIP_FROM_IMAGE_SCRIPT) \

core/config.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,10 +726,10 @@ ifneq ($(TARGET_COPY_FILES_OVERRIDES),)
726726
PRODUCT_COPY_FILES := $(filter-out $(TARGET_COPY_FILES_OVERRIDES), $(PRODUCT_COPY_FILES))
727727
endif
728728

729-
ifneq ($(SLIM_BUILD),)
729+
ifneq ($(AOSPB_BUILD),)
730730
## We need to be sure the global selinux policies are included
731731
## last, to avoid accidental resetting by device configs
732-
$(eval include vendor/slim/sepolicy/sepolicy.mk)
732+
$(eval include vendor/aospb/sepolicy/sepolicy.mk)
733733

734734
# Include any vendor specific config.mk file
735735
-include $(TOPDIR)vendor/*/build/core/config.mk

core/dumpvar.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $(info |_________/ |_|_|_| |_| |_| "Y88888P" |)
7777
$(info |==========================================|)
7878
$(info PLATFORM_VERSION_CODENAME=$(PLATFORM_VERSION_CODENAME))
7979
$(info PLATFORM_VERSION=$(PLATFORM_VERSION))
80-
$(info SLIM_VERSION=$(SLIM_VERSION))
80+
$(info AOSPB_VERSION=$(AOSPB_VERSION))
8181
$(info TARGET_PRODUCT=$(TARGET_PRODUCT))
8282
$(info TARGET_BUILD_VARIANT=$(TARGET_BUILD_VARIANT))
8383
$(info TARGET_BUILD_TYPE=$(TARGET_BUILD_TYPE))

core/product_config.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ include $(BUILD_SYSTEM)/node_fns.mk
179179
include $(BUILD_SYSTEM)/product.mk
180180
include $(BUILD_SYSTEM)/device.mk
181181

182-
# A SLIM build needs only the SLIM product makefiles.
183-
ifneq ($(SLIM_BUILD),)
184-
all_product_configs := $(shell find device -path "*/$(SLIM_BUILD)/slim.mk")
182+
# A AOSPB build needs only the AOSPB product makefiles.
183+
ifneq ($(AOSPB_BUILD),)
184+
all_product_configs := $(shell find device -path "*/$(AOSPB_BUILD)/aospb.mk")
185185
else
186186
ifneq ($(strip $(TARGET_BUILD_APPS)),)
187187
# An unbundled app build needs only the core product makefiles.
@@ -192,9 +192,9 @@ else
192192
# files in the tree.
193193
all_product_configs := $(get-all-product-makefiles)
194194
endif # TARGET_BUILD_APPS
195-
endif # SLIM_BUILD
195+
endif # AOSPB_BUILD
196196

197-
ifeq ($(SLIM_BUILD),)
197+
ifeq ($(AOSPB_BUILD),)
198198
# Find the product config makefile for the current product.
199199
# all_product_configs consists items like:
200200
# <product_name>:<path_to_the_product_makefile>

envsetup.sh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ function check_product()
7878
return
7979
fi
8080

81-
if (echo -n $1 | grep -q -e "^slim_") ; then
82-
SLIM_BUILD=$(echo -n $1 | sed -e 's/^slim_//g')
83-
export BUILD_NUMBER=$((date +%s%N ; echo $SLIM_BUILD; hostname) | openssl sha1 | sed -e 's/.*=//g; s/ //g' | cut -c1-10)
81+
if (echo -n $1 | grep -q -e "^aospb_") ; then
82+
AOSPB_BUILD=$(echo -n $1 | sed -e 's/^aospb_//g')
83+
export BUILD_NUMBER=$((date +%s%N ; echo $AOSPB_BUILD; hostname) | openssl sha1 | sed -e 's/.*=//g; s/ //g' | cut -c1-10)
8484
else
85-
SLIM_BUILD=
85+
AOSPB_BUILD=
8686
fi
87-
export SLIM_BUILD
87+
export AOSPB_BUILD
8888
8989
TARGET_PRODUCT=$1 \
9090
TARGET_BUILD_VARIANT= \
@@ -506,7 +506,7 @@ function print_lunch_menu()
506506
echo " (ohai, koush!)"
507507
fi
508508
echo
509-
if [ "z${SLIM_DEVICES_ONLY}" != "z" ]; then
509+
if [ "z${AOSPB_DEVICES_ONLY}" != "z" ]; then
510510
echo "Breakfast menu... pick a combo:"
511511
else
512512
echo "Lunch menu... pick a combo:"
@@ -520,7 +520,7 @@ function print_lunch_menu()
520520
i=$(($i+1))
521521
done | column
522522

523-
if [ "z${SLIM_DEVICES_ONLY}" != "z" ]; then
523+
if [ "z${AOSPB_DEVICES_ONLY}" != "z" ]; then
524524
echo "... and don't forget the bacon!"
525525
fi
526526

@@ -549,10 +549,10 @@ function breakfast()
549549
{
550550
target=$1
551551
local variant=$2
552-
SLIM_DEVICES_ONLY="true"
552+
AOSPB_DEVICES_ONLY="true"
553553
unset LUNCH_MENU_CHOICES
554554
add_lunch_combo full-eng
555-
for f in `/bin/ls vendor/slim/vendorsetup.sh 2> /dev/null`
555+
for f in `/bin/ls vendor/aospb/vendorsetup.sh 2> /dev/null`
556556
do
557557
echo "including $f"
558558
. $f
@@ -568,11 +568,11 @@ function breakfast()
568568
# A buildtype was specified, assume a full device name
569569
lunch $target
570570
else
571-
# This is probably just the SLIM model name
571+
# This is probably just the AOSPB model name
572572
if [ -z "$variant" ]; then
573573
variant="userdebug"
574574
fi
575-
lunch slim_$target-$variant
575+
lunch aospb_$target-$variant
576576
fi
577577
fi
578578
return $?
@@ -622,7 +622,7 @@ function lunch()
622622
check_product $product
623623
if [ $? -ne 0 ]
624624
then
625-
# if we can't find a product, try to grab it off the SLIM github
625+
# if we can't find a product, try to grab it off the AOSPB github
626626
T=$(gettop)
627627
pushd $T > /dev/null
628628
build/tools/roomservice.py $product
@@ -734,7 +734,7 @@ function tapas()
734734
function eat()
735735
{
736736
if [ "$OUT" ] ; then
737-
MODVERSION=$(get_build_var SLIM_VERSION)
737+
MODVERSION=$(get_build_var AOSPB_VERSION)
738738
ZIPFILE=$MODVERSION.zip
739739
ZIPPATH=$OUT/$ZIPFILE
740740
if [ ! -f $ZIPPATH ] ; then
@@ -750,7 +750,7 @@ function eat()
750750
done
751751
echo "Device Found.."
752752
fi
753-
if (adb shell getprop ro.slim.device | grep -q "$SLIM_BUILD");
753+
if (adb shell getprop ro.aospb.device | grep -q "$AOSPB_BUILD");
754754
then
755755
# if adbd isn't root we can't write to /cache/recovery/
756756
adb root
@@ -772,7 +772,7 @@ EOF
772772
fi
773773
return $?
774774
else
775-
echo "The connected device does not appear to be $SLIM_BUILD, run away!"
775+
echo "The connected device does not appear to be $AOSPB_BUILD, run away!"
776776
fi
777777
}
778778

@@ -1751,7 +1751,7 @@ function repopick() {
17511751
function fixup_common_out_dir() {
17521752
common_out_dir=$(get_build_var OUT_DIR)/target/common
17531753
target_device=$(get_build_var TARGET_DEVICE)
1754-
if [ ! -z $SLIM_FIXUP_COMMON_OUT ]; then
1754+
if [ ! -z $AOSPB_FIXUP_COMMON_OUT ]; then
17551755
if [ -d ${common_out_dir} ] && [ ! -L ${common_out_dir} ]; then
17561756
mv ${common_out_dir} ${common_out_dir}-${target_device}
17571757
ln -s ${common_out_dir}-${target_device} ${common_out_dir}
@@ -1796,7 +1796,7 @@ function installboot()
17961796
sleep 1
17971797
adb wait-for-online shell mount /system 2>&1 > /dev/null
17981798
adb wait-for-online remount
1799-
if (adb shell getprop ro.slim.device | grep -q "$SLIM_BUILD");
1799+
if (adb shell getprop ro.aospb.device | grep -q "$AOSPB_BUILD");
18001800
then
18011801
adb push $OUT/boot.img /cache/
18021802
for i in $OUT/system/lib/modules/*;
@@ -1807,7 +1807,7 @@ function installboot()
18071807
adb shell chmod 644 /system/lib/modules/*
18081808
echo "Installation complete."
18091809
else
1810-
echo "The connected device does not appear to be $SLIM_BUILD, run away!"
1810+
echo "The connected device does not appear to be $AOSPB_BUILD, run away!"
18111811
fi
18121812
}
18131813

@@ -1841,13 +1841,13 @@ function installrecovery()
18411841
sleep 1
18421842
adb wait-for-online shell mount /system 2>&1 > /dev/null
18431843
adb wait-for-online remount
1844-
if (adb shell getprop ro.slim.device | grep -q "$SLIM_BUILD");
1844+
if (adb shell getprop ro.aospb.device | grep -q "$AOSPB_BUILD");
18451845
then
18461846
adb push $OUT/recovery.img /cache/
18471847
adb shell dd if=/cache/recovery.img of=$PARTITION
18481848
echo "Installation complete."
18491849
else
1850-
echo "The connected device does not appear to be $SLIM_BUILD, run away!"
1850+
echo "The connected device does not appear to be $AOSPB_BUILD, run away!"
18511851
fi
18521852
}
18531853

@@ -1867,7 +1867,7 @@ function dopush()
18671867
echo "Device Found."
18681868
fi
18691869

1870-
if (adb shell getprop ro.slim.device | grep -q "$SLIM_BUILD") || [ "$FORCE_PUSH" == "true" ];
1870+
if (adb shell getprop ro.aospb.device | grep -q "$AOSPB_BUILD") || [ "$FORCE_PUSH" == "true" ];
18711871
then
18721872
# retrieve IP and PORT info if we're using a TCP connection
18731873
TCPIPPORT=$(adb devices | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+[^0-9]+' \
@@ -1971,7 +1971,7 @@ EOF
19711971
rm -f $OUT/.log
19721972
return 0
19731973
else
1974-
echo "The connected device does not appear to be $SLIM_BUILD, run away!"
1974+
echo "The connected device does not appear to be $AOSPB_BUILD, run away!"
19751975
fi
19761976
}
19771977

@@ -2095,7 +2095,7 @@ unset f
20952095

20962096
# Add completions
20972097
check_bash_version && {
2098-
dirs="sdk/bash_completion vendor/slim/bash_completion"
2098+
dirs="sdk/bash_completion vendor/aospb/bash_completion"
20992099
for dir in $dirs; do
21002100
if [ -d ${dir} ]; then
21012101
for f in `/bin/ls ${dir}/[a-z]*.bash 2> /dev/null`; do

tools/buildinfo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ if [ "$TARGET_UNIFIED_DEVICE" == "" ] ; then
5858
fi
5959
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
6060

61-
echo "ro.slim.device=$SLIM_DEVICE"
61+
echo "ro.aospb.device=$AOSPB_DEVICE"
6262

6363
echo "# end build properties"
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
## Specify phone tech before including full_phone
2-
$(call inherit-product, vendor/slim/config/gsm.mk)
3-
41
# Release name
52
PRODUCT_RELEASE_NAME := __DEVICE__
63

7-
# Inherit some common SLIM stuff.
8-
$(call inherit-product, vendor/slim/config/common_full_phone.mk)
4+
# Inherit some common AOSPB stuff.
5+
$(call inherit-product, vendor/aospb/config/common_full_phone.mk)
96

107
# Inherit device configuration
118
$(call inherit-product, device/__MANUFACTURER__/__DEVICE__/device___DEVICE__.mk)
129

1310
## Device identifier. This must come after all inclusions
1411
PRODUCT_DEVICE := __DEVICE__
15-
PRODUCT_NAME := slim___DEVICE__
12+
PRODUCT_NAME := aospb___DEVICE__
1613
PRODUCT_BRAND := __MANUFACTURER__
1714
PRODUCT_MODEL := __DEVICE__
1815
PRODUCT_MANUFACTURER := __MANUFACTURER__

tools/device/mkvendor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ popd
110110

111111
echo Done!
112112
echo Use the following command to set up your build environment:
113-
echo ' 'lunch slim_$DEVICE-eng
113+
echo ' 'lunch aospb_$DEVICE-eng
114114
echo And use the follwowing command to build a recovery:
115-
echo ' '. build/tools/device/makerecoveries.sh slim_$DEVICE-eng
115+
echo ' '. build/tools/device/makerecoveries.sh aospb_$DEVICE-eng

tools/releasetools/edify_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def RunBackup(self, command):
151151
self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s");' % command))
152152

153153
def ValidateSignatures(self, command):
154-
self.script.append('package_extract_file("META-INF/org/slimroms/releasekey", "/tmp/releasekey");')
154+
self.script.append('package_extract_file("META-INF/org/aospb/releasekey", "/tmp/releasekey");')
155155
# Exit code 124 == abort. run_program returns raw, so left-shift 8bit
156156
self.script.append('run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can\'t install this package on top of incompatible data. Please try another package or run a factory reset");')
157157

tools/releasetools/ota_from_target_files.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -629,20 +629,6 @@ def WriteFullOTAPackage(input_zip, output_zip):
629629

630630
system_progress = 0.75
631631

632-
script.Print(" _____________________ ")
633-
script.Print(" / www.slimroms.org |")
634-
script.Print(" / |")
635-
script.Print(" / ___________________|")
636-
script.Print(" / / ___ ")
637-
script.Print(" / / ___/ \ ")
638-
script.Print(" / / / \___/____ ____ ")
639-
script.Print(" / / | |___/ \_/ |")
640-
script.Print(" ___________/ / | | | |")
641-
script.Print("| / | | | | | |")
642-
script.Print("| / | | | | | |")
643-
script.Print("|_____________/ \___^___^___^___^___/")
644-
script.Print(" ")
645-
646632
if OPTIONS.wipe_user_data:
647633
system_progress -= 0.1
648634
if HasVendorPartition(input_zip):
@@ -763,7 +749,7 @@ def output_sink(fn, data):
763749
common.ZipWriteStr(output_zip, "system/build.prop",
764750
""+input_zip.read("SYSTEM/build.prop"))
765751

766-
common.ZipWriteStr(output_zip, "META-INF/org/slimroms/releasekey",
752+
common.ZipWriteStr(output_zip, "META-INF/org/aospb/releasekey",
767753
""+input_zip.read("META/releasekey.txt"))
768754

769755
def WritePolicyConfig(file_name, output_zip):

0 commit comments

Comments
 (0)