[Buildroot] [PATCH] dt: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jan 26 20:58:33 UTC 2016
Gustavo,
On Tue, 26 Jan 2016 17:40:23 -0300, gustavo.zacarias at free-electrons.com
wrote:
> +# uClibc doesn't provide POSIX AIO
> +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),)
> +DT_AIO_FLAG = -DAIO
> +endif
I think this one should rather be:
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
...
endif
> +define DT_BUILD_CMDS
> + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/$(DT_SUBDIR) -f Makefile.linux \
> + CC="$(TARGET_CC)" \
> + CFLAGS="$(TARGET_CFLAGS) -std=c99 $(DT_AIO_FLAG) -DMMAP -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DTHREADS -DSCSI" \
> + LDFLAGS="$(TARGET_LDFLAGS)" \
> + OS=linux
Can you use TARGET_CONFIGURE_OPTS here instead ?
Maybe something like:
DT_CFLAGS = \
-std=c99 \
$(DT_AIO_FLAG) \
-DMMAP \
-D__linux__ \
-D_GNU_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-DTHREADS \
-DSCSI
and then:
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/$(DT_SUBDIR) -f Makefile.linux \
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) $(DT_CFLAGS)" \
OS=linux
What do you think ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list