aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSridhar Rao <srao@linuxfoundation.org>2022-05-14 05:20:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2022-05-14 05:20:33 +0000
commitaa47709de52b24d72e12eb73b16db71ed596015a (patch)
treef17ce698a467addba0949318cd6cd4a9526c605e
parent4c84835b04fe522b9b743671b47205a14e4fee40 (diff)
parent8d283a3f7cfb491b881e4393e75fc66a2c11c0dc (diff)
Merge "QEMU: Fix Qemu Build."
-rwxr-xr-xsrc/qemu/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qemu/Makefile b/src/qemu/Makefile
index b105496c..fe658c41 100755
--- a/src/qemu/Makefile
+++ b/src/qemu/Makefile
@@ -1,7 +1,7 @@
# makefile to manage qemu package
#
-# Copyright (c) 2015-2016 OPNFV and Intel Corporation.
+# Copyright (c) 2015-2022 Anuket, Intel Corporation, and The Linux Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ include ../mk/master.mk
include ../package-list.mk
WORK_DIR = qemu
+SUBMODULE_CONFIG_FILE = $(WORK_DIR)/.gitmodules
TAG_DONE_FLAG = $(WORK_DIR)/.$(QEMU_TAG).done
INSTALL_TARGET = force_make force_install
CONFIG_CMD =
@@ -40,6 +41,9 @@ config $(WORK_DIR)/Makefile: $(WORK_DIR)/configure
force_make: $(WORK_DIR)/Makefile
$(AT)cd $(WORK_DIR) && git pull $(QEMU_URL) $(QEMU_TAG)
$(AT)echo "git pull done"
+ $(AT)sed -i -e 's/https\:\/\/git.qemu.org\/git\/capstone\.git/https\:\/\/github.com\/capstone-engine\/capstone\.git/g' $(SUBMODULE_CONFIG_FILE)
+ $(AT)sed -i -e 's/https\:\/\/git.qemu.org\/git\/dtc\.git/https\:\/\/github.com\/qemu\/dtc\.git/g' $(SUBMODULE_CONFIG_FILE)
+ $(AT)sed -i -e 's/https\:\/\/git.qemu.org\/git\/keycodemapdb\.git/https\:\/\/github.com\/qemu\/keycodemapdb\.git/g' $(SUBMODULE_CONFIG_FILE)
$(AT)$(MAKE) -C $(WORK_DIR) $(MORE_MAKE_FLAGS)
@echo "Make done"