More changes for a correct NSH Windows natvie build
This commit is contained in:
parent
980bd93afc
commit
c4c49ffbb3
11
Make.defs
11
Make.defs
@ -2,7 +2,7 @@
|
|||||||
# apps/Make.defs
|
# apps/Make.defs
|
||||||
# Common make definitions provided to all applications
|
# Common make definitions provided to all applications
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -42,9 +42,18 @@ else
|
|||||||
DEPCONFIG = $(TOPDIR)$(DELIM).config $(APPDIR)$(DELIM).config
|
DEPCONFIG = $(TOPDIR)$(DELIM).config $(APPDIR)$(DELIM).config
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
define REGISTER
|
||||||
|
$(Q) echo Register: $1
|
||||||
|
$(Q) echo { "$1", $2, $3, $4 }, > "$(BUILTIN_REGISTRY)$(DELIM)$4.bdat"
|
||||||
|
$(Q) echo int $4(int argc, char *argv[]); > "$(BUILTIN_REGISTRY)$(DELIM)$4.pdat"
|
||||||
|
$(Q) touch $(BUILTIN_REGISTRY)$(DELIM).updated"
|
||||||
|
endef
|
||||||
|
else
|
||||||
define REGISTER
|
define REGISTER
|
||||||
$(Q) echo "Register: $1"
|
$(Q) echo "Register: $1"
|
||||||
$(Q) echo "{ \"$1\", $2, $3, $4 }," > "$(BUILTIN_REGISTRY)$(DELIM)$4.bdat"
|
$(Q) echo "{ \"$1\", $2, $3, $4 }," > "$(BUILTIN_REGISTRY)$(DELIM)$4.bdat"
|
||||||
$(Q) echo "int $4(int argc, char *argv[]);" > "$(BUILTIN_REGISTRY)$(DELIM)$4.pdat"
|
$(Q) echo "int $4(int argc, char *argv[]);" > "$(BUILTIN_REGISTRY)$(DELIM)$4.pdat"
|
||||||
$(Q) touch "$(BUILTIN_REGISTRY)$(DELIM).updated"
|
$(Q) touch "$(BUILTIN_REGISTRY)$(DELIM).updated"
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
@ -1168,7 +1168,11 @@ static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
|
|||||||
argument = nsh_strcat(vtbl, argument, envstr);
|
argument = nsh_strcat(vtbl, argument, envstr);
|
||||||
*allocation = argument;
|
*allocation = argument;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
/* Just to catch any dangling else clauses */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user