create dtbs

This commit is contained in:
Mario Fetka 2012-10-24 21:45:37 +02:00
parent e20666817b
commit bae0580540

View File

@ -566,6 +566,7 @@ _kernel_src_compile() {
all || die "genkernel failed"
ARCH=${OLDARCH}
# Buffalo Boxes have a special naming and start address
if [ "${K_NASKERNEL_TYPE}" = "buffalo" ]; then
if [ "${K_NASKERNEL_DTB}" = "none" ]; then
@ -578,6 +579,9 @@ _kernel_src_compile() {
mkimage -A arm -O linux -T ramdisk -C none -a 0x00000000 -e 0x00000000 -n initrd-${KV_FULL} \
-d "${WORKDIR}"/boot/initramfs-genkernel-${ARCH}-${KV_FULL} "${WORKDIR}"/boot/initrd-genkernel-${ARCH}-${KV_FULL}.buffalo
else
pushd "${S}"
make dtbs
popd
einfo "Append the device-tree-blob to the Kenel Image"
cat "${WORKDIR}"/boot/kernel-genkernel-${ARCH}-${KV_FULL} "${S}"/arch/arm/boot/${K_NASKERNEL_DTB} > zImage.new
einfo "Create uImage of the resulting Image"