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 = .
|
||||
|
||||
|
||||
include $(top_dir)/Makefile.common
|
||||
|
||||
VERSION = $(CFGversion)
|
||||
|
||||
DEFS = -DVERSION=\"$(VERSION)\" -DSPAWN_SHELL -DDISTRIB_NAME=\"$(CFGdistribname)\"
|
||||
DEFS = -DSPAWN_SHELL
|
||||
|
||||
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 = $(USBNET_DEFS_GEN) -DDISABLE_PCINET
|
||||
|
||||
all: unpack dirs $(BINS)
|
||||
all: unpack version.h dirs $(BINS)
|
||||
|
||||
unpack:
|
||||
rm -rf $(top_dir)/$(TMP_PKG)
|
||||
@ -218,6 +217,10 @@ $(STAGE1OBJS-FULL): %-FULL.o: %.c
|
||||
.c.o:
|
||||
$(COMPILE) $(INCLUDES) -c $<
|
||||
|
||||
version.h:
|
||||
echo "#define VERSION \"$$VERSION\"" >version.h; \
|
||||
echo "#define DISTRIB_NAME \"$$ORIGIN $$VERSION $$SUITE ($$CODENAME)\"" >>version.h
|
||||
|
||||
|
||||
clean:
|
||||
@for n in $(DIRS); do \
|
||||
@ -225,6 +228,7 @@ clean:
|
||||
done
|
||||
rm -rf $(TMP_PKG)
|
||||
rm -f *.o .depend *.rdz *.img $(BINS)
|
||||
rm -f version.h
|
||||
|
||||
|
||||
tar-mkinitrd_helper: clean
|
||||
|
@ -14,11 +14,11 @@
|
||||
#
|
||||
#*****************************************************************************
|
||||
|
||||
include $(DISTRCONF)
|
||||
|
||||
ARCH := $(patsubst i%86,i386,$(shell uname -m))
|
||||
ARCH := $(patsubst sparc%,sparc,$(ARCH))
|
||||
|
||||
include $(DISTRCONF)
|
||||
|
||||
#- default lib is dietlibc (honoured by main Makefile whenever possible)
|
||||
L = DIETLIBC
|
||||
#L = GLIBC
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define _CONFIG_STAGE1_H_
|
||||
|
||||
#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 */
|
||||
#define MEM_LIMIT_RAMDISK 80
|
||||
|
Loading…
Reference in New Issue
Block a user