rbutil: Fix native Windows build for tools.

- When make on Windows finds sh.exe it will try to use that. We use
  cmd.exe calls when detecting Windows, so make sure we use cmd.exe as
  shell.
- Add missing Windows compatibility to tomcrypt Makefile.

Change-Id: Iaef133ca27472a5ddf449174d540983f15c66aea
This commit is contained in:
Dominik Riebeling 2020-10-21 19:12:08 +02:00
parent 884d8922e3
commit 1801dcc999
4 changed files with 14 additions and 2 deletions

View file

@ -13,6 +13,7 @@ SILENT = @
endif
ifeq ($(OS),Windows_NT)
SHELL = cmd.exe
mkdir = if not exist $(subst /,\,$(1)) mkdir $(subst /,\,$(1))
else
mkdir = mkdir -p $(1)