From 6a868a671472d454b407a165fc31c5f7dfe783c6 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 23 Jul 2015 16:02:25 -0300 Subject: Move meta-fsl-ppc content to layer root This commit is just a rename of all contents of meta-fsl-ppc subdirectory to this layer's root, merging the contents of common files, subsequent changes are based on top of that. Signed-off-by: Otavio Salvador --- recipes-bsp/boot-format/boot-format/flags.patch | 21 +++++++++++++++++++++ recipes-bsp/boot-format/boot-format_git.bb | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 recipes-bsp/boot-format/boot-format/flags.patch create mode 100644 recipes-bsp/boot-format/boot-format_git.bb (limited to 'recipes-bsp/boot-format') diff --git a/recipes-bsp/boot-format/boot-format/flags.patch b/recipes-bsp/boot-format/boot-format/flags.patch new file mode 100644 index 000000000..cddb34cde --- /dev/null +++ b/recipes-bsp/boot-format/boot-format/flags.patch @@ -0,0 +1,21 @@ +Index: git/Makefile +=================================================================== +--- git.orig/Makefile ++++ git/Makefile +@@ -3,14 +3,14 @@ + INSTALL=install + PREFIX=/usr + +-CFLAGS=-Wall ++override CFLAGS+=-Wall + + all: boot_format + + boot_format.o: boot_format.c boot_format.h + + boot_format: boot_format.o +- $(CC) $< -o $@ ++ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + + install: boot_format + $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin diff --git a/recipes-bsp/boot-format/boot-format_git.bb b/recipes-bsp/boot-format/boot-format_git.bb new file mode 100644 index 000000000..2d9f9b1db --- /dev/null +++ b/recipes-bsp/boot-format/boot-format_git.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "Boot format utility for booting from eSDHC/eSPI" +LICENSE = "GPLv2" +PR = "r6" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1 \ + file://flags.patch" +SRCREV = "4eb81a6797ef4e58bf7d9b2d58afb37a21c1f550" + +S = "${WORKDIR}/git" +EXTRA_OEMAKE = 'CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"' + +do_install(){ + oe_runmake DESTDIR=${D} PREFIX=${prefix} install +} + +PACKAGES =+ "${PN}-config" +FILES_${PN}-config += "${datadir}/*" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf