Skip to content

Commit 4d97467

Browse files
authored
Fix building apple2 disk, fix GIT_VERSION macro def (#147)
1 parent a6efe96 commit 4d97467

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ WITHOUT_PRODOS_BOOT = dist.apple2/bootable.po
8787

8888
apple2/disk-post::
8989
cp $(WITHOUT_PRODOS_BOOT) $(BUILD_DISK)
90-
ac -as $(BUILD_DISK) $(PRODUCT_BASE) < $(BUILD_EXEC)
91-
ac -p $(BUILD_DISK) $(PRODUCT_BASE).SYSTEM SYS 0x2000 < $(CC65_UTILS_DIR)/$(LOADER_SYSTEM)
90+
ac -as $(BUILD_DISK) $(PRODUCT_BASE).SYSTEM < $(BUILD_EXEC)
91+
# ac -p $(BUILD_DISK) $(PRODUCT_BASE).SYSTEM SYS 0x2000 < $(BUILD_EXEC)
9292

9393
########################################
9494
# Atari customization

makefiles/common.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ PLATFORM := $(basename $(notdir $(lastword $(PLATFORM_MK))))
88
PLATFORM_UC := $(shell echo "$(PLATFORM)" | tr '[:lower:]' '[:upper:]')
99
$(info Building for PLATFORM=$(PLATFORM))
1010

11-
# Add GIT_VERSION macro define to CFLAGS, includes tag if available,
12-
# short commit hash, appends '*' if changes haven't been commited
13-
CFLAGS += -DGIT_VERSION='\"$(shell git rev-parse --short HEAD)$(shell git status --porcelain | grep -q '^[ MADRCU]' && echo '*')\"'
14-
1511
include $(MWD)/../Makefile
1612

1713
# Add GIT_VERSION macro define to CFLAGS, includes tag if available,
1814
# short commit hash, appends '*' if changes haven't been commited
19-
CFLAGS += -DGIT_VERSION='\"$(shell git rev-parse --short HEAD)$(shell git status --porcelain | grep -q '^[ MADRCU]' && echo '*')\"'
15+
CFLAGS += -DGIT_VERSION='"$(shell git rev-parse --short HEAD)$(shell git status --porcelain | grep -q '^[ MADRCU]' && echo '*')"'
2016

2117
IS_LIBRARY := $(if $(filter %.lib,$(PRODUCT)),1,0)
2218
ifeq ($(IS_LIBRARY),1)

src/apple2/screen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ void screen_show_info_extended(bool printerEnabled, AdapterConfigExtended* acx)
528528
cprintf("%10s%s\r\n","MAC: ",acx->sMacAddress);
529529
cprintf("%10s%s\r\n","BSSID: ",acx->sBssid);
530530
cprintf("%10s%s\r\n","FNVer: ",acx->fn_version);
531+
cprintf("%10s%s\r\n","CONFIG: ",GIT_VERSION);
531532

532533
gotoxy(6,STATUS_BAR);
533534
screen_print_menu("C","hange SSID ");

0 commit comments

Comments
 (0)