From: Leon Woestenberg Date: Thu, 17 May 2007 18:29:32 +0000 (+0000) Subject: helloworld: helloworld is easy, fixing my own commits is not. X-Git-Tag: Release-2010-05/1~8868^2~467 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3423313cc1e068a3a2e142cb9c917b35d45f0d;p=openembedded.git helloworld: helloworld is easy, fixing my own commits is not. --- 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 \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 -