build only diet version of insmod;
make version.h with versions defines
This commit is contained in:
parent
a33470e838
commit
7a4a1ac162
12
Makefile
12
Makefile
@ -38,11 +38,10 @@
|
|||||||
|
|
||||||
top_dir = .
|
top_dir = .
|
||||||
|
|
||||||
|
|
||||||
include $(top_dir)/Makefile.common
|
include $(top_dir)/Makefile.common
|
||||||
|
|
||||||
VERSION = $(CFGversion)
|
DEFS = -DSPAWN_SHELL
|
||||||
|
|
||||||
DEFS = -DVERSION=\"$(VERSION)\" -DSPAWN_SHELL -DDISTRIB_NAME=\"$(CFGdistribname)\"
|
|
||||||
|
|
||||||
COMPILE = $(CC) $(DEFS) $(CFLAGS)
|
COMPILE = $(CC) $(DEFS) $(CFLAGS)
|
||||||
|
|
||||||
@ -157,7 +156,7 @@ DIRS += mar pci-resource usb-resource $(INSMOD) slang newt bzlib
|
|||||||
USBNET_DEFS_GEN = -DENABLE_USB -DENABLE_USBNET
|
USBNET_DEFS_GEN = -DENABLE_USB -DENABLE_USBNET
|
||||||
USBNET_DEFS = $(USBNET_DEFS_GEN) -DDISABLE_PCINET
|
USBNET_DEFS = $(USBNET_DEFS_GEN) -DDISABLE_PCINET
|
||||||
|
|
||||||
all: unpack dirs $(BINS)
|
all: unpack version.h dirs $(BINS)
|
||||||
|
|
||||||
unpack:
|
unpack:
|
||||||
rm -rf $(top_dir)/$(TMP_PKG)
|
rm -rf $(top_dir)/$(TMP_PKG)
|
||||||
@ -218,6 +217,10 @@ $(STAGE1OBJS-FULL): %-FULL.o: %.c
|
|||||||
.c.o:
|
.c.o:
|
||||||
$(COMPILE) $(INCLUDES) -c $<
|
$(COMPILE) $(INCLUDES) -c $<
|
||||||
|
|
||||||
|
version.h:
|
||||||
|
echo "#define VERSION \"$$VERSION\"" >version.h; \
|
||||||
|
echo "#define DISTRIB_NAME \"$$ORIGIN $$VERSION $$SUITE ($$CODENAME)\"" >>version.h
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for n in $(DIRS); do \
|
@for n in $(DIRS); do \
|
||||||
@ -225,6 +228,7 @@ clean:
|
|||||||
done
|
done
|
||||||
rm -rf $(TMP_PKG)
|
rm -rf $(TMP_PKG)
|
||||||
rm -f *.o .depend *.rdz *.img $(BINS)
|
rm -f *.o .depend *.rdz *.img $(BINS)
|
||||||
|
rm -f version.h
|
||||||
|
|
||||||
|
|
||||||
tar-mkinitrd_helper: clean
|
tar-mkinitrd_helper: clean
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
#
|
#
|
||||||
#*****************************************************************************
|
#*****************************************************************************
|
||||||
|
|
||||||
include $(DISTRCONF)
|
|
||||||
|
|
||||||
ARCH := $(patsubst i%86,i386,$(shell uname -m))
|
ARCH := $(patsubst i%86,i386,$(shell uname -m))
|
||||||
ARCH := $(patsubst sparc%,sparc,$(ARCH))
|
ARCH := $(patsubst sparc%,sparc,$(ARCH))
|
||||||
|
|
||||||
|
include $(DISTRCONF)
|
||||||
|
|
||||||
#- default lib is dietlibc (honoured by main Makefile whenever possible)
|
#- default lib is dietlibc (honoured by main Makefile whenever possible)
|
||||||
L = DIETLIBC
|
L = DIETLIBC
|
||||||
#L = GLIBC
|
#L = GLIBC
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#define _CONFIG_STAGE1_H_
|
#define _CONFIG_STAGE1_H_
|
||||||
|
|
||||||
#define _GNU_SOURCE 1
|
#define _GNU_SOURCE 1
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
/* If we have more than that amount of memory (in Mbytes), we assume we can load the second stage as a ramdisk */
|
/* If we have more than that amount of memory (in Mbytes), we assume we can load the second stage as a ramdisk */
|
||||||
#define MEM_LIMIT_RAMDISK 80
|
#define MEM_LIMIT_RAMDISK 80
|
||||||
|
Loading…
Reference in New Issue
Block a user