--- /dev/null
+nanopi
+#quiet - don't produce any messages except for errors
+#cmdline = ... - set the kernel command line
+# default is console=ttySAC0,115200 root=/dev/mmcblk0p2
+#rootfstype=ext4 rootwait
+# cmdline += ... - append to the kernel command line
+# kernel = ... - set the kernel filename
+# default is zImage
+# kernel_address = ... - set the kernel load address
+# default is 0x30008000
+# initramfs = ... - set the initramfs file
+# default is blank, meaning no initramfs
+# initramfs_address = ... - set the initramfs load address
+# default is 0x33000000
--- /dev/null
+DESCRIPTION = "Minimalistic bootloader for NanoPi"
+HOMEPAGE = "https://github.com/ARMWorks/NanoPi-nanoboot"
+SECTION = "bootloaders"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a23a74b3f4caf9616230789d94217acb"
+
+SRCREV = "24adb19902ad48834800eb4e6fd6b87bd2faed85"
+PV = "v0.0+git${SRCPV}"
+
+SRC_URI = "git://github.com/ARMWorks/NanoPi-nanoboot.git;protocol=https;branch=master;rev=24adb19902ad48834800eb4e6fd6b87bd2faed85 \
+ file://nanoboot.txt"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit deploy
+
+
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+FILES_${PN} = "/boot ${sysconfdir}"
+
+do_configure () {
+}
+
+do_compile () {
+ oe_runmake
+}
+
+do_install () {
+ install -d ${D}/boot
+ install ${S}/build/nanoboot.bin ${D}/boot/
+ install ${WORKDIR}/nanoboot.txt ${D}/boot/
+}
+
+do_deploy () {
+ install -d ${DEPLOYDIR}
+ install ${S}/build/nanoboot.bin ${DEPLOYDIR}/
+ install ${WORKDIR}/nanoboot.txt ${DEPLOYDIR}/
+}
+
+addtask deploy before do_build after do_compile