[meta-freescale] create custom package from local files

Daiane Angolini daiane.angolini at freescale.com
Tue Sep 3 11:15:06 PDT 2013


On 09/03/2013 03:13 PM, JC wrote:
>  > I mean the tmp/work directory; check if your helloword was installed
> and build fine.

When I tried the helloworld sample, my recipe was this:








DESCRIPTION = "simple Hello World program"
PR = "r0"
LICENSE = "GPLv2"

S = "${WORKDIR}"

LIC_FILES_CHKSUM = 
"file://hello_world.c;md5=7fd4c53c45caecabff42b45a5204546b"
SRC_URI = "file://hello_world.c"

do_compile() {
              ${CC} ${CFLAGS} ${LDFLAGS} -o hello_world hello_world.c
}

do_install() {
              install -d ${D}${bindir}/
              install -m 0755 ${S}/hello_world ${D}${bindir}/
}

FILES_${PN} = "${bindir}/hello_world"




Does this help?







>
>
> Well, I would answer yes according to this?But nothing looks like a
> binary...
>
> tmp/work$ find . -name *helloworld*
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.c
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/helloworld.spec
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/license-destdir/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/helloworld
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime-reverse/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg.packaged
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-dev.packaged
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/pkgdata/runtime/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dbg
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-locale
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-dev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-doc
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/packages-split/helloworld-staticdev
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dbg-1.1-r0.armv7a_vfp_neon.rpm
>
> ./armv7a-vfp-neon-poky-linux-gnueabi/helloworld/1.1-r0/deploy-rpms/armv7a_vfp_neon/helloworld-dev-1.1-r0.armv7a_vfp_neon.rpm
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


-- 
Daiane




More information about the meta-freescale mailing list