diff options
author | Sergey Lapin <slapin@ossfans.org> | 2008-11-29 21:35:11 +0300 |
---|---|---|
committer | Sergey Lapin <slapin@ossfans.org> | 2008-11-29 21:38:05 +0300 |
commit | 8b8666b8b2bb431c0cc70e5cb5ec9b13d958595d (patch) | |
tree | 9a30b61ca4d2a1f3dfcf95d4002fbf31d4a005a8 /packages/at91bootstrap/at91bootstrap_2.3.bb | |
parent | b2d71c878353f70bfb201127fdb4a28141221e17 (diff) |
at91bootstrap: new package
needed to support afeb9260 board, for
at91 CPUs with very little flash memory inside
at91bootstrap is first-level bootloader, which
sets up SDRAM and loads u-boot there, then runs.
Signed-off-by: Sergey Lapin <slapin@ossfans.org>
Diffstat (limited to 'packages/at91bootstrap/at91bootstrap_2.3.bb')
-rw-r--r-- | packages/at91bootstrap/at91bootstrap_2.3.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/at91bootstrap/at91bootstrap_2.3.bb b/packages/at91bootstrap/at91bootstrap_2.3.bb new file mode 100644 index 0000000000..9b33ce5cc4 --- /dev/null +++ b/packages/at91bootstrap/at91bootstrap_2.3.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "at91bootstrap" +SRC_URI = "ftp://www.at91.com/pub/buildroot/${PN}-${PV}.tar.bz2 \ + file://at91bootstrap-${PV}.4.patch;patch=1 \ + " +PR = "r3" +SECTION = "bootloaders" + +AT91BOOTSTRAP_MACHINE = "at91sam9260ek" +AT91BOOTSTRAP_MACHINE ?= "${MACHINE}" +AT91BOOTSTRAP_FLAGS ?= "" +AT91BOOTSTRAP_MEMORY ?= "dataflash" + +AT91BOOTSTRAP_IMAGE = "at91bootstrap-${MACHINE}-${AT91BOOTSTRAP_MEMORY}-${PV}-${PR}.bin" +AT91BOOTSTRAP_SYMLINK = "at91bootstrap.bin" + +S = "${WORKDIR}/${PN}-${PV}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} MEMORY=${AT91BOOTSTRAP_MEMORY}" + +do_compile () { + unset LDFLAGS + unset CFLAGS + unset CPPFLAGS + + rm -Rf ${S}/binaries + oe_runmake ${AT91BOOTSTRAP_MACHINE}_defconfig + oe_runmake AT91_CUSTOM_FLAGS="${AT91BOOTSTRAP_FLAGS}" +} + +do_deploy () { + install -d ${DEPLOY_DIR_IMAGE} + install ${S}/binaries/${AT91BOOTSTRAP_MACHINE}-${AT91BOOTSTRAP_MEMORY}boot-${PV}.bin \ + ${DEPLOY_DIR_IMAGE}/${AT91BOOTSTRAP_IMAGE} + package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${AT91BOOTSTRAP_IMAGE} + cd ${DEPLOY_DIR_IMAGE} + rm -f ${AT91BOOTSTRAP_SYMLINK} + ln -sf ${AT91BOOTSTRAP_IMAGE} ${AT91BOOTSTRAP_SYMLINK} + package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${AT91BOOTSTRAP_SYMLINK} +} + +do_deploy[dirs] = "${S}" +addtask deploy before do_build after do_compile |