X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FMakefile.tpl;h=6c6611e000f4c80719bd008ecc5078f14a6a8324;hb=70e01c27ee4c2f92000e0857262bec59db59efda;hp=e2ef60a233841357a27317b5c56b6ddb96e9642e;hpb=880dd63bfcba522dab0a75cc63fdec1d04ff8c89;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Makefile.tpl b/KernelLand/Modules/Makefile.tpl index e2ef60a2..6c6611e0 100644 --- a/KernelLand/Modules/Makefile.tpl +++ b/KernelLand/Modules/Makefile.tpl @@ -10,6 +10,7 @@ LIBINCLUDES := $(addprefix -I$(ACESSDIR)/KernelLand/Modules/,$(DEPS)) LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES)) CPPFLAGS := -I$(ACESSDIR)/KernelLand/Kernel/include -I$(ACESSDIR)/KernelLand/Kernel/arch/$(ARCHDIR)/include +CPPFLAGS += -I$(ACESSDIR)/KernelLand/Modules CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR) CPPFLAGS += $(_CPPFLAGS) CPPFLAGS += $(LIBINCLUDES) @@ -50,9 +51,11 @@ clean: install: $(BIN) ifneq ($(BUILDTYPE),static) - @$(xMKDIR) $(DISTROOT)/Modules/$(ARCH); true - $(xCP) $(BIN) $(DISTROOT)/Modules/$(ARCH)/$(NAME).kmd + @$(xMKDIR) $(DISTROOT)/$(ARCH)/Modules; true + @gzip -c $(BIN) > $(BIN).gz + $(xCP) $(BIN).gz $(DISTROOT)/$(ARCH)/Modules/$(NAME).kmd.gz else + @true endif