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)/config/modversions.h' \
-e '/^DEFINES/a\ \
-DMODVERSIONS \\' src/Makefile
- cd $(DIR_APP) && sed -i -e 's/$$(shell uname -r)/$(KVER)/' Makefile
+ cd $(DIR_APP) && sed -i -e 's/$$(shell uname -r)/$(KVER)-ipfire/' Makefile
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)/config/modversions.h' \
-e '/^DEFINES/a\ \
-DMODVERSIONS \\' src/Makefile
- cd $(DIR_APP) && sed -i -e 's/$$(shell uname -r)/$(KVER)-smp/' Makefile
+ cd $(DIR_APP) && sed -i -e 's/$$(shell uname -r)/$(KVER)-ipfire-smp/' Makefile
endif
cd $(DIR_APP) && make CC=$(CC)
cd $(DIR_APP) && make CC=$(CC) install