cpu-z80: use the findsdcc script
authorAlan Cox <alan@linux.intel.com>
Sat, 22 Aug 2015 08:21:34 +0000 (09:21 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 22 Aug 2015 08:21:34 +0000 (09:21 +0100)
Kernel/cpu-z80/rules.mk

index 233197a..8de241a 100644 (file)
@@ -16,15 +16,4 @@ export ASMEXT = .s
 export BINEXT = .rel
 export BITS=16
 #
-#      Adjust this as needed for your platform (or contribute a script
-#      to look in the usual places !)
-#
-ifeq ($(SDCC_LIB),)
-  ifeq ($(UNAME_S),Darwin)
-    export LIBZ80=/usr/local/share/sdcc/lib/$(CPU)
-  else
-    export LIBZ80=/usr/share/sdcc/lib/$(CPU)
-  endif
-else
-  export LIBZ80=$(SDCC_LIB)/$(CPU)
-endif
+export LIBZ80=$(shell tools/findsdcc $(CPU))