build: directory customization [1/3]

PD#SWPL-72631

Problem:
common, build and common_drivers directories are not under the same directory

Solution:
common, build and common_drivers directories customization

Verify:
s4d and C2 AF400

Change-Id: I8e29737a0a791d58454691e922dda949098595bb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
diff --git a/amlogic_utils.sh b/amlogic_utils.sh
index fff887a..a489ea6 100644
--- a/amlogic_utils.sh
+++ b/amlogic_utils.sh
@@ -23,7 +23,7 @@
 function post_defconfig_cmds() {
 	# check_defconfig
 	rm ${ROOT_DIR}/${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG}
-	pushd ${ROOT_DIR}/common_drivers
+	pushd ${ROOT_DIR}/${KERNEL_DIR}/${COMMON_DRIVERS_DIR}
 		sed -i '5,${/CONFIG_AMLOGIC_BREAK_GKI/d}' ${ROOT_DIR}/${FRAGMENT_CONFIG}
 		sed -i '5,${/CONFIG_AMLOGIC_IN_KERNEL_MODULES/d}' ${ROOT_DIR}/${FRAGMENT_CONFIG}
 	popd
@@ -161,15 +161,15 @@
 
 	rm rootfs -rf
 	mkdir rootfs
-	cp ${ROOT_DIR}/common_drivers/rootfs_base.cpio.gz.uboot	rootfs
+	cp ${ROOT_DIR}/${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/rootfs_base.cpio.gz.uboot	rootfs
 	cd rootfs
 	dd if=rootfs_base.cpio.gz.uboot of=rootfs_base.cpio.gz bs=64 skip=1
 	gunzip rootfs_base.cpio.gz
 	mkdir rootfs
 	cd rootfs
 	cpio -i -F ../rootfs_base.cpio
-	if [ -d ${ROOT_DIR}/common_drivers/customer ]; then
-		cp ${ROOT_DIR}/common_drivers/customer . -rf
+	if [ -d ${ROOT_DIR}/${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/customer ]; then
+		cp ${ROOT_DIR}/${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/customer . -rf
 	fi
 	cp -rf ../../modules .
 	find . | cpio -o -H newc | gzip > ../rootfs_new.cpio.gz