aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/oemake22
-rw-r--r--doc/TODO2
2 files changed, 23 insertions, 1 deletions
diff --git a/bin/oemake b/bin/oemake
index f831c98f3..03474d04f 100644
--- a/bin/oemake
+++ b/bin/oemake
@@ -138,6 +138,25 @@ def version():
print "OpenEmbedded Build Infrastructure Core version %s" % oe.__version__
print "OEMake version %s" % __version__
+def get_oefiles():
+ """Get default oefiles"""
+ dirs = os.listdir(os.getcwd())
+ oefiles = []
+ for f in dirs:
+ (root, ext) = os.path.splitext(f)
+ if ext == ".oe":
+ oefiles.append(os.path.abspath(os.path.join(os.getcwd(),f)))
+ return oefiles
+
+def get_oefile():
+ """Get default oefile"""
+ oefiles = get_oefiles()
+ if len(oefiles):
+ return oefiles[0]
+ else:
+ return None
+
+
import getopt
try:
(opts, args) = getopt.getopt(sys.argv[1:], 'v', [ 'version' ])
@@ -181,6 +200,9 @@ files += sys.argv[1:]
data.setVar("OEFILES", string.join(files), cfg)
if not len(files):
+ files = get_oefiles()
+
+if not len(files):
usage()
#set_automatic_vars(sys.argv[2], ) # Deduce per-package environment variables
diff --git a/doc/TODO b/doc/TODO
index 8e5e34797..c1c11a637 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -41,7 +41,7 @@ TODO:
[x] Default 'command' argument for oebuild
[x] Allow execution with a command, without .oe
[x] Allow execution with .oe, without command
- [ ] Default .oe argument for oemake
+ [x] Default .oe argument for oemake
[ ] Allow specifying a command on oemake execution
[ ] Must be able to execute 'oemake' within a subpackage
of an upstream package, and yet retain access to the