diff options
author | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-05-17 18:29:32 +0000 |
---|---|---|
committer | Leon Woestenberg <leon.woestenberg@gmail.com> | 2007-05-17 18:29:32 +0000 |
commit | 5f3423313cc1e068a3a2e142cb9c917b35d45f0d (patch) | |
tree | 1f000db413882cc09e6d3803030b69c018354cc0 | |
parent | be45ff7d2ecd063fb2d01e618aef73198f353f0d (diff) |
helloworld: helloworld is easy, fixing my own commits is not.
-rw-r--r-- | packages/helloworld/helloworld_1.0.0.bb | 25 | ||||
-rw-r--r-- | packages/images/helloworld-image.bb | 14 |
2 files changed, 0 insertions, 39 deletions
diff --git a/packages/helloworld/helloworld_1.0.0.bb b/packages/helloworld/helloworld_1.0.0.bb index 99ebc051fd..9e68b0bd61 100644 --- a/packages/helloworld/helloworld_1.0.0.bb +++ b/packages/helloworld/helloworld_1.0.0.bb @@ -23,28 +23,3 @@ do_install () { ln -sf ${bindir}/helloworld ${D}${base_bindir}/init } -DESCRIPTION = "Minimal statically compiled Hello world!" -LICENSE = "GPL" -PR = "r0" - -S = "${WORKDIR}/${P}" - -do_fetch () { - mkdir -p ${WORKDIR}/${P} - cd ${WORKDIR}/${P} - echo -e "#include <stdio.h>\nint main(void)\n{\n\tprintf(\"Hello world!\\\n\");\twhile(1);\n\treturn 0;\n}\n" >helloworld.c -} - -do_compile () { - ${CC} -o helloworld helloworld.c -static -} - -do_install () { - install -d ${D}${bindir} - install -m 0755 helloworld ${D}${bindir}/ - # /bin/init is on purpose, it is tried after /sbin/init and /etc/init - # so if a sysvinit is installed, it will be used instead of helloworld - install -d ${D}${base_bindir} - ln -sf ${bindir}/helloworld ${D}${base_bindir}/init -} - diff --git a/packages/images/helloworld-image.bb b/packages/images/helloworld-image.bb index 058bb7f12a..5154752f75 100644 --- a/packages/images/helloworld-image.bb +++ b/packages/images/helloworld-image.bb @@ -12,17 +12,3 @@ PACKAGE_INSTALL = ${RDEPENDS} inherit image -# Hello world image -# Contains *only* a statically linked hello world init program -LICENSE = "MIT" -PR = "r0" - -RDEPENDS = "helloworld" - -export IMAGE_BASENAME = "helloworld-image" -export IMAGE_LINGUAS = "" - -PACKAGE_INSTALL = ${RDEPENDS} - -inherit image - |