From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Zacarias Date: Tue, 26 Jan 2016 20:22:01 -0300 Subject: [Buildroot] [PATCH] dt: new package In-Reply-To: <20160126215833.1afdb8dc@free-electrons.com> References: <1453840823-24345-1-git-send-email-gustavo.zacarias@free-electrons.com> <20160126215833.1afdb8dc@free-electrons.com> Message-ID: <56A7FF99.4030202@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 26/01/16 17:58, Thomas Petazzoni wrote: > 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 Hi. Musl has support for posix aio, so in the oft chance that someone wants to patch/enable, in this way it would be inaccurate. >> +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 ? Sure, i can spin v2 with this change. Regards.