LINKS="Makefile"
# for TIZEN-maru
if test "$maru" = "yes" ; then
-DIRS="$DIRS tizen/src tizen/standalone-src"
-LINKS="$LINKS tizen/Makefile tizen/src/Makefile tizen/src/scripts tizen/src/ui/resource tizen/src/VERSION tizen/standalone-src/Makefile tizen/supplements"
+DIRS="$DIRS tizen/src"
+LINKS="$LINKS tizen/Makefile tizen/src/Makefile tizen/src/scripts tizen/src/ui/resource tizen/src/VERSION tizen/supplements"
fi
LINKS="$LINKS tests/tcg/lm32/Makefile po/Makefile"
LINKS="$LINKS tests/tcg/Makefile.target tests/fp/Makefile"
all:
cd src && $(MAKE) all
- cd standalone-src && $(MAKE) all
clean:
cd src && $(MAKE) clean
- cd standalone-src && $(MAKE) clean
distclean:
- cd standalone-src && $(MAKE) clean
cd src && $(MAKE) distclean
install:
cd src && $(MAKE) install
- cd standalone-src && $(MAKE) install
@echo "Present working directory :" $(PWD)
@echo "EMULATOR directory :" $(EMUL_DIR)
mkdir -p $(EMUL_DIR)/bin
- mkdir -p $(EMUL_DIR)/etc
- mkdir -p $(EMUL_DIR)/data
- mkdir -p $(EMUL_DIR)/icons
- mkdir -p $(EMUL_DIR)/images
@echo "Copying emulator binary"
cp -pP $(BUILD_PATH)/x86_64-softmmu/qemu-system-x86_64$(EXESUF) $(EMUL_DIR)/bin/emulator-x86_64-whpx$(EXESUF)
- @echo "Copying bioses to $(EMUL_DIR)/data/bios"
- mkdir -p $(EMUL_DIR)/data/bios
- cp -pP ../../../pc-bios/bios-256k.bin $(EMUL_DIR)/data/bios
- cp -pP ../../../pc-bios/linuxboot.bin $(EMUL_DIR)/data/bios
- cp -pP ../../../pc-bios/linuxboot_dma.bin $(EMUL_DIR)/data/bios
- cp -pP ../../../pc-bios/efi-virtio.rom $(EMUL_DIR)/data/bios
- cp -pP scripts/emulator.sh $(EMUL_DIR)/bin/emulator-whpx.sh
ifdef CONFIG_WIN32
cp -pP scripts/emulator.cmd $(EMUL_DIR)/bin/emulator-whpx.cmd
endif
-ifdef CONFIG_QT
- cp -pP ui/resource/images/display_off_guide.png $(EMUL_DIR)/images
- cp -pP ui/resource/images/about_bg.png $(EMUL_DIR)/images
-ifdef CONFIG_DARWIN
- cp -pP ui/resource/icons/emulator_icon.ico $(EMUL_DIR)/icons
-endif
-endif
-
-# Enable vhost-net on Linux
-ifdef CONFIG_LINUX
- cp -pP ../supplements/SDK/tizen-vhost-net $(EMUL_DIR)/etc
- cp -pP ../supplements/SDK/45-tizen-vhost-net.rules $(EMUL_DIR)/etc
-endif
-
-# Enable USB pass-through on Linux
-ifeq ($(CONFIG_LINUX)$(CONFIG_TIZENUSB),yy)
- cp -pP ../supplements/SDK/tizen-usb $(EMUL_DIR)/etc
- cp -pP ../supplements/SDK/45-tizen-usb.rules $(EMUL_DIR)/etc
-endif
-
-# give a title name for sdb terminal.
-ifdef CONFIG_DARWIN
- cp -pP scripts/sdbscript $(EMUL_DIR)/bin
-endif
-
-# for bridged network
-ifdef CONFIG_LINUX
- cp -pP scripts/emulator-ifup-linux.sh $(EMUL_DIR)/etc/emulator-ifup.sh
- cp -pP ../supplements/SDK/tizen-sudoers.rules $(EMUL_DIR)/etc
-endif
-ifdef CONFIG_DARWIN
- cp -pP scripts/emulator-ifup-darwin.sh $(EMUL_DIR)/etc/emulator-ifup.sh
-endif
-
else
all:
@echo "Please call configure before running make!"