~hui.wang/alsa-driver/dkms-packaging.audiosdw-sofdev-ww14

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Hui Wang
  • Date: 2020-07-07 13:41:10 UTC
  • Revision ID: hui.wang@canonical.com-20200707134110-tg6tdaxqkxyl2xju
1.2.2 support building on 5.4 kernel

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        echo "PACKAGE_VERSION=\"$(PACKAGE_VERSION)\"" >> dkms.conf; \
135
135
        echo "AUTOINSTALL=\"$(AUTOINSTALL_MK)\"" >> dkms.conf; \
136
136
        echo "OBSOLETE_BY=\"$(OBSOLETE_BY)\"" >> dkms.conf; \
137
 
        echo "BUILD_EXCLUSIVE_KERNEL=\"^$(KERNEL_VERSION).*\"" >> dkms.conf; \
 
137
        echo "BUILD_EXCLUSIVE_KERNEL=\"^5.[04].*\"" >> dkms.conf; \
138
138
        echo 'MAKE="make KVER=$$kernelver"' >> dkms.conf; \
139
139
        echo 'CLEAN="make KVER=$$kernelver clean"' >> dkms.conf; \
140
140
        echo >> dkms.conf; \
229
229
# cleans the source subdirectory only
230
230
clean-src:
231
231
        -$(Q)rm $(LOCAL_BUILD)/unpatched-source
232
 
#       -$(Q)rm -rf $(SRC_DIR)/*
 
232
        -$(Q)rm -rf $(SRC_DIR)/*
233
233
        -$(Q)rm -rf $(QUILT_PC_DIR)
234
234
 
235
235
 
244
244
 
245
245
clean: 
246
246
# created by create-dirs
247
 
#       -$(Q)rm -rf $(LOCAL_BUILD)
248
 
        find $(LOCAL_BUILD) -iname *.o | xargs rm -rf
249
 
        find $(LOCAL_BUILD) -iname *.o.cmd | xargs rm -rf
250
 
        find $(LOCAL_BUILD) -iname *.ko | xargs rm -rf
251
 
        find $(LOCAL_BUILD) -iname *.ko.cmd | xargs rm -rf
 
247
        -$(Q)rm -rf $(LOCAL_BUILD)
 
248
#       find $(LOCAL_BUILD) -iname *.o | xargs rm -rf
 
249
#       find $(LOCAL_BUILD) -iname *.o.cmd | xargs rm -rf
 
250
#       find $(LOCAL_BUILD) -iname *.ko | xargs rm -rf
 
251
#       find $(LOCAL_BUILD) -iname *.ko.cmd | xargs rm -rf
252
252
 
253
253
# created by driver-build 
254
254
        -$(Q)rm -f $(TOP)/Module.symvers  $(TOP)/modules.order