ifeq "$(SMP)" ""
cd $(DIR_APP) && sed -i \
-e 's/$$(shell uname -m)/$(MACHINE)/' \
- -e 's/$$(shell uname -r)/$(KVER)/' \
- -e 's/`uname -r`/$(KVER)/' \
+ -e 's/$$(shell uname -r)/$(KVER)-ipfire/' \
+ -e 's/`uname -r`/$(KVER)-ipfire/' \
-e 's/^\(CCFLAGS.*\)$$/\1 \\/' \
-e '\+^CCFLAGS+a\ \
-include \$$(KRNLINCL)/linux/modversions.h' \
else
cd $(DIR_APP) && sed -i \
-e 's/$$(shell uname -m)/$(MACHINE)/' \
- -e 's/$$(shell uname -r)/$(KVER)-smp/' \
- -e 's/`uname -r`/$(KVER)-smp/' \
+ -e 's/$$(shell uname -r)/$(KVER)-ipfire-smp/' \
+ -e 's/`uname -r`/$(KVER)-ipfire-smp/' \
-e 's/^\(CCFLAGS.*\)$$/\1 \\/' \
-e '\+^CCFLAGS+a\ \
-include \$$(KRNLINCL)/linux/modversions.h' \
endif
cd $(DIR_APP) && CC="$(KGCC)" make
cd $(DIR_APP) && CC="$(KGCC)" make install
-ifeq "$(SMP)" ""
- find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
-else
- find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
-endif
-# @rm -rf $(DIR_APP)
+ @rm -rf $(DIR_APP)
@$(POSTBUILD)
\ No newline at end of file