summaryrefslogtreecommitdiff
path: root/script/handle/make/config
diff options
context:
space:
mode:
Diffstat (limited to 'script/handle/make/config')
-rwxr-xr-xscript/handle/make/config8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/handle/make/config b/script/handle/make/config
index cd13aca6..9d028a85 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -97,18 +97,18 @@ handle_src_tree()
target_dir="${cfgsdir}/${target}"
xx_ mkdir -p "${elfdir}/${target}"
- eval "$(setvars "undefined" arch tree)"
+ eval "$(setvars "" arch tree)"
romtype="normal"
- [ ! -f "${target_dir}/target.cfg" ] && \
+ [ -f "${target_dir}/target.cfg" ] || \
fail "handle_src_tree: ${target_dir}: missing target.cfg"
# Override the above defaults using target.cfg
. "${target_dir}/target.cfg" # source
- [ "${tree}" = "undefined" ] && \
+ [ -z ${tree} ] && \
fail "handle_src_tree: ${target_dir}: tree undefined"
- [ "${arch}" = "undefined" ] && \
+ [ -z ${arch} ] && \
fail "handle_src_tree: ${target_dir}: undefined cpu type"
codedir="${project}/${tree}"