diff options
Diffstat (limited to 'meta/classes-recipe/cml1.bbclass')
-rw-r--r-- | meta/classes-recipe/cml1.bbclass | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/classes-recipe/cml1.bbclass b/meta/classes-recipe/cml1.bbclass index 03e5fe6f47..3c2b4da4af 100644 --- a/meta/classes-recipe/cml1.bbclass +++ b/meta/classes-recipe/cml1.bbclass | |||
@@ -31,7 +31,7 @@ CROSS_CURSES_LIB = "-lncurses -ltinfo" | |||
31 | CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' | 31 | CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' |
32 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" | 32 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" |
33 | 33 | ||
34 | KCONFIG_CONFIG_COMMAND ??= "menuconfig" | 34 | KCONFIG_CONFIG_COMMAND ??= "menuconfig ${EXTRA_OEMAKE}" |
35 | KCONFIG_CONFIG_ENABLE_MENUCONFIG ??= "true" | 35 | KCONFIG_CONFIG_ENABLE_MENUCONFIG ??= "true" |
36 | KCONFIG_CONFIG_ROOTDIR ??= "${B}" | 36 | KCONFIG_CONFIG_ROOTDIR ??= "${B}" |
37 | python do_menuconfig() { | 37 | python do_menuconfig() { |
@@ -58,7 +58,7 @@ python do_menuconfig() { | |||
58 | # ensure that environment variables are overwritten with this tasks 'd' values | 58 | # ensure that environment variables are overwritten with this tasks 'd' values |
59 | d.appendVar("OE_TERMINAL_EXPORTS", " PKG_CONFIG_DIR PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR") | 59 | d.appendVar("OE_TERMINAL_EXPORTS", " PKG_CONFIG_DIR PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR") |
60 | 60 | ||
61 | oe_terminal("sh -c 'make %s; if [ \\$? -ne 0 ]; then echo \"Command failed.\"; printf \"Press any key to continue... \"; read r; fi'" % d.getVar('KCONFIG_CONFIG_COMMAND'), | 61 | oe_terminal("sh -c 'make %s; if [ $? -ne 0 ]; then echo \"Command failed.\"; printf \"Press any key to continue... \"; read r; fi'" % d.getVar('KCONFIG_CONFIG_COMMAND'), |
62 | d.getVar('PN') + ' Configuration', d) | 62 | d.getVar('PN') + ' Configuration', d) |
63 | 63 | ||
64 | try: | 64 | try: |
@@ -93,10 +93,9 @@ python do_diffconfig() { | |||
93 | 93 | ||
94 | if isdiff: | 94 | if isdiff: |
95 | statement = 'diff --unchanged-line-format= --old-line-format= --new-line-format="%L" ' + configorig + ' ' + config + '>' + fragment | 95 | statement = 'diff --unchanged-line-format= --old-line-format= --new-line-format="%L" ' + configorig + ' ' + config + '>' + fragment |
96 | subprocess.call(statement, shell=True) | ||
97 | # No need to check the exit code as we know it's going to be | 96 | # No need to check the exit code as we know it's going to be |
98 | # non-zero, but that's what we expect. | 97 | # non-zero, but that's what we expect. |
99 | shutil.copy(configorig, config) | 98 | subprocess.call(statement, shell=True) |
100 | 99 | ||
101 | bb.plain("Config fragment has been dumped into:\n %s" % fragment) | 100 | bb.plain("Config fragment has been dumped into:\n %s" % fragment) |
102 | else: | 101 | else: |
@@ -113,3 +112,10 @@ do_showconfig() { | |||
113 | } | 112 | } |
114 | do_showconfig[nostamp] = "1" | 113 | do_showconfig[nostamp] = "1" |
115 | addtask showconfig after do_configure | 114 | addtask showconfig after do_configure |
115 | |||
116 | do_savedefconfig() { | ||
117 | bbplain "Saving defconfig to:\n${B}/defconfig" | ||
118 | oe_runmake -C ${B} savedefconfig | ||
119 | } | ||
120 | do_savedefconfig[nostamp] = "1" | ||
121 | addtask savedefconfig after do_configure | ||