2010-12-16 16:06:32     Automated autoconf.h generation.

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2010-12-16 16:06:32     Automated autoconf.h generation.

Matt Gilg (UNITED STATES)

Message: 96816   

 

I'm assembling scripts to automatically pull in our vendor modifications & configuration and build the distribution.

 

Currently, I copy our vendor specific configuration files into their respective places in the tree, but I need to run and exit menuconfig immediately in order for the appropriate headers to be generated.  Opening menuconfig and immediately exiting is enough to cause the job to be done.  I've tried using 'make config', but it interactively asks me questions - and I can't have any prompts.  (I found it funny that it asked questions, even though I had already copied all four vendor config files)

 

Is there a way to generate the configuration via command-line that requires no feedback?

 

-Matt

QuoteReplyEditDelete

 

 

2010-12-16 17:18:52     Re: Automated autoconf.h generation.

Mike Frysinger (UNITED STATES)

Message: 96817   

 

very few things should use and/or care about autoconf.h.  we've proactively removed references to it.  are you seeing places that still need it that need fixing ?

 

as for prompts from `make config`, why not just run it through the standard `yes` pipe ?

yes "" | make config

QuoteReplyEditDelete

 

 

2010-12-16 18:01:57     Re: Automated autoconf.h generation.

Matt Gilg (UNITED STATES)

Message: 96818   

 

Hi Mike,

 

Something related to dhcp/dhcpd was yelling about autoconf.h, I'll reproduce the error and post the info.

 

I've never used the yes pipe before, thanks for the info - that should work well.

 

-Matt

QuoteReplyEditDelete

 

 

2010-12-16 18:37:19     Re: Automated autoconf.h generation.

Matt Gilg (UNITED STATES)

Message: 96819   

 

Just remembered - I'm using kernel version 2009R1.1-RC4, so the autoconf.h dep has probably been removed in more recent versions.

 

Here is the output:

 

 

make[7]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/speaker-test'

make[8]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/speaker-test'

test -z "/usr/bin" || mkdir -p -- "/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/bin"

  /usr/bin/install -c 'speaker-test' '/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/bin/speaker-test'

test -z "/usr/share/man/man1" || mkdir -p -- "/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/man/man1"

/usr/bin/install -c -m 644 '../../speaker-test/speaker-test.1' '/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/man/man1/speaker-test.1'

make[8]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/speaker-test'

make[7]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/speaker-test'

make[6]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/speaker-test'

Making install in utils

make[6]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/utils'

make[7]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/utils'

make[7]: Nothing to be done for `install-exec-am'.

make[7]: Nothing to be done for `install-data-am'.

make[7]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/utils'

make[6]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/utils'

Making install in m4

make[6]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/m4'

make[7]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/m4'

make[7]: Nothing to be done for `install-exec-am'.

make[7]: Nothing to be done for `install-data-am'.

make[7]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/m4'

make[6]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/m4'

Making install in po

make[6]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/po'

if test "alsa-utils" = "gettext-tools"; then \

          /bin/sh ../../mkinstalldirs /home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po; \

          for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \

            /usr/bin/install -c -m 644 ../../po/$file \

                            /home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po/$file; \

          done; \

          for file in Makevars; do \

            rm -f /home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/DESTDIR/usr/share/gettext/po/$file; \

          done; \

        else \

          : ; \

        fi

make[6]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build/po'

make[6]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build'

make[7]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build'

make[7]: Nothing to be done for `install-exec-am'.

make[7]: Nothing to be done for `install-data-am'.

make[7]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build'

make[6]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build'

make[5]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils/build'

make[4]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps/alsa-utils'

make[3]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-apps'

[ ! -d "blkfin-drvs" ] || ( touch blkfin-drvs/.sgbuilt_user && make -C blkfin-drvs ) || exit $?

make[3]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-drvs'

for i in    ; do make -C $i all || exit $? ; done

make[3]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-drvs'

[ ! -d "blkfin-test" ] || ( touch blkfin-test/.sgbuilt_user && make -C blkfin-test ) || exit $?

make[3]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-test'

for i in    ; do make -C $i all || exit $? ; done

make[3]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/blkfin-test'

[ ! -d "busybox" ] || ( touch busybox/.sgbuilt_user && make -C busybox ) || exit $?

make[3]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/busybox'

make -C build-busybox-1.13.4

make[4]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/busybox/build-busybox-1.13.4'

make -C /home/autobuilder/Blackfin/uClinux/user/busybox/busybox-1.13.4 O=/home/autobuilder/Blackfin/uClinux/user/busybox/build-busybox-1.13.4

  Using /home/autobuilder/Blackfin/uClinux/user/busybox/busybox-1.13.4 as source for busybox

  GEN     /home/autobuilder/Blackfin/uClinux/user/busybox/build-busybox-1.13.4/Makefile

make[4]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/busybox/build-busybox-1.13.4'

make[3]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/busybox'

[ ! -d "dhcpcd-new" ] || ( touch dhcpcd-new/.sgbuilt_user && make -C dhcpcd-new ) || exit $?

make[3]: Entering directory `/home/autobuilder/Blackfin/uClinux/user/dhcpcd-new'

bfin-linux-uclibc-gcc -pipe -Wall -g -O2      -mcpu=bf537-0.3 -D_BSD_SOURCE=1 -DEMBED -D__uClinux__ -I/home/autobuilder/Blackfin/uClinux  -mcpu=bf537-0.3  -c -o client.o client.c

In file included from client.c:48:

pathnames.h:27:29: error: config/autoconf.h: No such file or directory

client.c: In function âclassIDsetupâ:

client.c:339: warning: pointer targets in passing argument 1 of âsnprintfâ differ in signedness

client.c: In function âdhcpConfigâ:

client.c:893: warning: pointer targets in passing argument 1 of âstrncpyâ differ in signedness

client.c:600: warning: unused variable âcmdâ

client.c: In function âreadDhcpCacheâ:

client.c:1153: warning: pointer targets in passing argument 1 of âstrncmpâ differ in signedness

client.c: In function âopenSocketâ:

client.c:1183: warning: implicit declaration of function âdeletePidFileâ

client.c: In function âcheckIfAlreadyRunningâ:

client.c:1576: warning: implicit declaration of function âkillâ

make[3]: *** [client.o] Error 1

make[3]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user/dhcpcd-new'

make[2]: *** [dhcpcd-new] Error 2

make[2]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/autobuilder/Blackfin/uClinux/user'

make: *** [user_only] Error 2

autobuilder@dev-server:~/Blackfin/uClinux$

 

//----------------------------------------------------------------------------------------------------------------------

 

 

Anyway, this is probably fixed in newer releases.

 

 

-Matt

QuoteReplyEditDelete

 

 

2010-12-20 14:54:03     Re: Automated autoconf.h generation.

Mike Frysinger (UNITED STATES)

Message: 96884   

 

trunk still had the include ... it only needed it for flatfsd which we dont use, so ive punted the include

Attachments

    Outcomes