mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
qemu: Allow qemu.sh to be run from any directory
Since qemu.sh is now tied to the directory it's ran from, it makes sense to change into that directory before starting to resolve any file paths. This let's us start the script from any directory without the need for any (cd && qemu) subshell.
This commit is contained in:
@@ -220,6 +220,8 @@ menuconfig()
|
||||
exec kconfig-mconf Config.in
|
||||
}
|
||||
|
||||
cd $(dirname $(readlink -f "$0"))
|
||||
|
||||
while [ "$1" != "" ]; do
|
||||
case $1 in
|
||||
-c)
|
||||
|
||||
+3
-2
@@ -11,8 +11,9 @@ local.mk:
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
@(cd $O/images && ./qemu.sh)
|
||||
@$(BINARIES_DIR)/qemu.sh
|
||||
|
||||
.PHONY: run-menuconfig
|
||||
run-menuconfig:
|
||||
@(cd $O/images && CONFIG_="CONFIG_" BR2_CONFIG=".config" ../build/buildroot-config/mconf Config.in)
|
||||
CONFIG_="CONFIG_" BR2_CONFIG="$(BINARIES_DIR)/.config" \
|
||||
$(BUILD_DIR)/buildroot-config/mconf $(BINARIES_DIR)/Config.in
|
||||
|
||||
Reference in New Issue
Block a user