VirtualBox

Changeset 1377 in kBuild


Ignore:
Timestamp:
Dec 15, 2007 5:46:55 PM (17 years ago)
Author:
bird
Message:

Added some KMK_OPTS_* variables to allow makefiles to deal with -j N and such in a simple fashion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r1324 r1377  
    17531753  {
    17541754    extern char *default_shell;
    1755     char *bin = get_path_kbuild_bin();
     1755    const char *bin = get_path_kbuild_bin();
    17561756    size_t len = strlen (bin);
    17571757    default_shell = xmalloc (len + sizeof("/kmk_ash.exe"));
     
    33093309       after reading makefiles which might have done `unexport MAKEFLAGS'. */
    33103310    v->export = v_export;
     3311
     3312#ifdef KMK
     3313  /* Provide simple access to some of the options. */
     3314  {
     3315    char val[32];
     3316    sprintf (val, "%u", job_slots);
     3317    define_variable ("KMK_OPTS_JOBS", sizeof("KMK_OPTS_JOBS") - 1,
     3318                     val, o_default, 1);
     3319    define_variable ("KMK_OPTS_KEEP_GOING", sizeof("KMK_OPTS_KEEP_GOING") - 1,
     3320                     keep_going_flag ? "1" : "0", o_default, 1);
     3321    define_variable ("KMK_OPTS_JUST_PRINT", sizeof("KMK_OPTS_JUST_PRINT") - 1,
     3322                     just_print_flag ? "1" : "0", o_default, 1);
     3323    define_variable ("KMK_OPTS_PRETTY_COMMAND_PRINTING", sizeof("KMK_OPTS_PRETTY_COMMAND_PRINTING") - 1,
     3324                     pretty_command_printing ? "1" : "0", o_default, 1);
     3325    sprintf (val, "%u", process_priority);
     3326    define_variable ("KMK_OPTS_PRORITY", sizeof("KMK_OPTS_PRORITY") - 1,
     3327                     val, o_default, 1);
     3328    sprintf (val, "%u", process_affinity);
     3329    define_variable ("KMK_OPTS_AFFINITY", sizeof("KMK_OPTS_AFFINITY") - 1,
     3330                     val, o_default, 1);
     3331  }
     3332#endif
    33113333}
    33123334
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette