Find the answer to your Linux question:
Results 1 to 8 of 8
hi is it possible to ignore the pop up screen and provide the options in a script to automate the build process, thanks in advance....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13

    Question ignore the pop up screen and provide options in a script


    hi

    is it possible to ignore the pop up screen and provide the options in a script to automate the build process, thanks in advance.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Huh? What popup screen? What are you trying to build?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13
    When you 'make menuconfig' under ~/src/snapgear, the sreen pops up, refer attachment. We are using 'make menuconfig' in the build script as oldconfig is broken in our setup. So we want to ingore this screen and provide the selection in a script so that we can run the build script without manual inputs. Let me know if i am not clear and need more info, thanks.
    Attached Images Attached Images

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Ah, the "friendly" configuration tool. I thought it had an optional command line interface. So, "make configure" doesn't work for you? You could go into scripts/kconfig and edit the mconf source file to take an optional input file argument so could it take its input from that file. You would also have to alter the Makefile in scripts/kconfig to call mconf with your file name if you implement an environment variable that tells it what to do, that would work both ways. Change the mconf call in the make file to use the variable as an argument, such as:

    Code:
    configure:
    
    mconf $(MCONF_INPUT)
    if MCONF_INPUT wasn't defined, then it works like now. If you set that environment variable (export MCONF_INPUT=myconf.txt), then it gets passed to mconf, which you can alter so that if there is an input file name passed, that is processed manually instead of calling the "user-friendly" menu.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13
    Thanks Rubberman, I will try your recommendation.

    fyi...I was able to fix the oldconfig by adding

    @chmod u+x config/setconfig
    @config/setconfig defaults

    to the oldconfig's command in the Makefile

    and adding

    cp .tmpconfig.h autoconf.h

    in the build script.

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    I hope that works for you. Let us know.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13
    Mine worked. Yet to try yours. Thanks for your time and advise.

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Quote Originally Posted by iamagui View Post
    Mine worked. Yet to try yours. Thanks for your time and advise.
    Glad you got thru the knothole. You way is probably more efficient than mine, and less error-prone. I'm just learning how to do kernel-level stuff with Linux.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •