thor: initial machine creation

Signed-off-by: yongbing yang <SnowYang@linux.alibaba.com>
Change-Id: Ic0248e729ac47d692c059648fcf60b297de2ae3d
diff --git a/meta-alibaba/meta-thor/recipes-bsp/linux/linux-aspeed_%.bbappend b/meta-alibaba/meta-thor/recipes-bsp/linux/linux-aspeed_%.bbappend
new file mode 100644
index 0000000..18de4ac
--- /dev/null
+++ b/meta-alibaba/meta-thor/recipes-bsp/linux/linux-aspeed_%.bbappend
@@ -0,0 +1,17 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+KERNEL_VERSION_SANITY_SKIP="1"
+SRC_URI += "\
+	file://aspeed-alibaba-thor.dts \
+	file://alibaba.cfg \
+	"
+
+do_patch_append(){
+	for DTB in "${KERNEL_DEVICETREE}"; do
+		DT=`basename ${DTB} .dtb`
+		if [ -r "${WORKDIR}/${DT}.dts" ]; then
+			echo "debug: ${STAGING_KERNEL_DIR}"
+			cp ${WORKDIR}/aspeed-alibaba-thor.dts \
+				${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
+		fi
+	done
+}