diff mbox series

[3/4] musl-utils: Add package

Message ID 20180302175256.29044-3-raj.khem@gmail.com
State Accepted
Commit 5e7735553b8cd96b74d2454e85d78fbd0175a675
Headers show
Series [1/4] bsd-headers: Move next to musl recipes | expand

Commit Message

Khem Raj March 2, 2018, 5:52 p.m. UTC
This contains getconf, getent and iconv glibc compat utils

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-core/musl/musl-utils.bb | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta/recipes-core/musl/musl-utils.bb

-- 
2.16.2

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Bruce Ashfield March 2, 2018, 8:47 p.m. UTC | #1
I've tested this against my new kernel-devsrc package when built on
musl, and I can
confirm that it works. There's a warning about the flags, but
everything still builds
and runs .. unlike before!

Cheers,

Bruce

root@qemux86-64:/lib/modules/4.14.19-yocto-standard/build# make ARCH=x86 scripts

getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/bin2c
getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  CHK     scripts/mod/devicetable-offsets.h
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/recordmcount

root@qemux86-64:~# mv hellomod_makefile Makefile
root@qemux86-64:~# make
make -C /usr/src/kernel M=/home/root modules
make[1]: Entering directory '/lib/modules/4.14.19-yocto-standard/build'
getconf: LFS_CFLAGS: unknown variable
getconf: LFS_LDFLAGS: unknown variable
getconf: LFS_LIBS: unknown variable
  CC [M]  /home/root/hellomod.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/root/hellomod.mod.o
  LD [M]  /home/root/hellomod.ko
make[1]: Leaving directory '/lib/modules/4.14.19-yocto-standard/build'

root@qemux86-64:~# insmod hellomod.ko
[  109.391703] hellomod: loading out-of-tree module taints kernel.
[  109.402032] Hello world!

Bruce


On Fri, Mar 2, 2018 at 12:52 PM, Khem Raj <raj.khem@gmail.com> wrote:
> This contains getconf, getent and iconv glibc compat utils

>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  meta/recipes-core/musl/musl-utils.bb | 25 +++++++++++++++++++++++++

>  1 file changed, 25 insertions(+)

>  create mode 100644 meta/recipes-core/musl/musl-utils.bb

>

> diff --git a/meta/recipes-core/musl/musl-utils.bb b/meta/recipes-core/musl/musl-utils.bb

> new file mode 100644

> index 0000000000..74b846df59

> --- /dev/null

> +++ b/meta/recipes-core/musl/musl-utils.bb

> @@ -0,0 +1,25 @@

> +# Copyright (C) 2018 Khem Raj <raj.khem@gmail.com>

> +# Released under the MIT license (see COPYING.MIT for the terms)

> +

> +DESCRIPTION = "getconf, getent and iconv implementations for musl"

> +HOMEPAGE = "https://git.alpinelinux.org/cgit/aports/tree/main/musl"

> +LICENSE = "BSD-2-Clause & GPL-2.0+"

> +LIC_FILES_CHKSUM = "file://LICENSE;md5=9d08215e611db87b357e8674b4b42564"

> +SECTION = "utils"

> +

> +# Date of the commit in SRCREV

> +PV = "20170421"

> +

> +SRCREV = "fb5630138ccabbbc14a19d372096a04e42573c7d"

> +SRC_URI = "git://github.com/boltlinux/musl-utils"

> +

> +inherit autotools

> +

> +S = "${WORKDIR}/git"

> +

> +PACKAGES =+ "${PN}-iconv"

> +

> +FILES_${PN}-iconv = "${bindir}/iconv"

> +

> +COMPATIBLE_HOST = ".*-musl.*"

> +

> --

> 2.16.2

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core




-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-core/musl/musl-utils.bb b/meta/recipes-core/musl/musl-utils.bb
new file mode 100644
index 0000000000..74b846df59
--- /dev/null
+++ b/meta/recipes-core/musl/musl-utils.bb
@@ -0,0 +1,25 @@ 
+# Copyright (C) 2018 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "getconf, getent and iconv implementations for musl"
+HOMEPAGE = "https://git.alpinelinux.org/cgit/aports/tree/main/musl"
+LICENSE = "BSD-2-Clause & GPL-2.0+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9d08215e611db87b357e8674b4b42564"
+SECTION = "utils"
+
+# Date of the commit in SRCREV
+PV = "20170421"
+
+SRCREV = "fb5630138ccabbbc14a19d372096a04e42573c7d"
+SRC_URI = "git://github.com/boltlinux/musl-utils"
+
+inherit autotools
+
+S = "${WORKDIR}/git"
+
+PACKAGES =+ "${PN}-iconv"
+
+FILES_${PN}-iconv = "${bindir}/iconv"
+
+COMPATIBLE_HOST = ".*-musl.*"
+