summaryrefslogtreecommitdiff
path: root/core/macros.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-19 15:35:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-19 15:35:02 -0700
commit449e02585d22040ae998a4b120f55f7e25b583a6 (patch)
treeb88246c994f7586967915e15c081b0fa34b6734b /core/macros.inc
parentce64bcb9e7ed34d7a54a79c8291f43563ba6a069 (diff)
downloadsyslinux-449e02585d22040ae998a4b120f55f7e25b583a6.tar.gz
core: merge the startup code for disk-based derivatives
Merge the startup code for disk-based derivatives (currently SYSLINUX, EXTLINUX) into a single file. There is probably still additional shared code that should be merged, but this is a good start. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/macros.inc')
-rw-r--r--core/macros.inc32
1 files changed, 21 insertions, 11 deletions
diff --git a/core/macros.inc b/core/macros.inc
index f3727c24..1c300583 100644
--- a/core/macros.inc
+++ b/core/macros.inc
@@ -24,20 +24,30 @@
; Identify the module we're compiling; the "correct" should be defined
; in the module itself to 1
;
-%ifndef IS_SYSLINUX
-%define IS_SYSLINUX 0
+%ifdef IS_SYSLINUX
+ %define MY_NAME 'SYSLINUX'
+%else
+ %define IS_SYSLINUX 0
%endif
-%ifndef IS_MDSLINUX
-%define IS_MDSLINUX 0
+%ifdef IS_MDSLINUX
+ %define MY_NAME 'MDSLINUX'
+%else
+ %define IS_MDSLINUX 0
%endif
-%ifndef IS_PXELINUX
-%define IS_PXELINUX 0
+%ifdef IS_PXELINUX
+ %define MY_NAME 'PXELINUX'
+%else
+ %define IS_PXELINUX 0
%endif
-%ifndef IS_ISOLINUX
-%define IS_ISOLINUX 0
+%ifdef IS_ISOLINUX
+ %define MY_NAME 'ISOLINUX'
+%else
+ %define IS_ISOLINUX 0
%endif
-%ifndef IS_EXTLINUX
-%define IS_EXTLINUX 0
+%ifdef IS_EXTLINUX
+ %define MY_NAME 'EXTLINUX'
+%else
+ %define IS_EXTLINUX 0
%endif
;
@@ -72,7 +82,7 @@
%assign %$v %1
%if %$v == 0
db '0'
- %else
+ %else
%assign %$dcount 0
%assign %$n %$v
%assign %$d 1