Ignore:
Timestamp:
Jan 16, 2011, 2:28:41 PM (9 years ago)
Author:
amain
Message:

debwrt-kernel-headers: instead of doing a find for include files, lets make headers_install do that job..probably more correctly. However, we might now miss some OpenWrt added headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/openwrt/openwrt-deliver.mk

    r123 r150  
    8181
    8282openwrt/deliver/kernel-headers: openwrt/deliver/prepare
     83        rm -rf $(INSTALL_DIR_OPENWRT_HEADERS)
    8384        mkdir -p $(INSTALL_DIR_OPENWRT_HEADERS)
    8485        mkdir -p $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
    85         cd $(OPENWRT_LINUX_DIR) && find . -path './include/*' -prune \
    86                 -o -path './scripts/*' -prune -o -type f \
    87                 \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
    88                 -name '*.sh' -o -name '*.pl' -o -name '*.lds' -o -name '*.symvers' \) \
    89                 -print | grep -v -e "^./.pc" -v -e "^./.svn" | cpio -pd --preserve-modification-time $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
    90         cd $(OPENWRT_LINUX_DIR) && cp -a drivers/media/dvb/dvb-core/*.h $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}/drivers/media/dvb/dvb-core
    91         cd $(OPENWRT_LINUX_DIR) && cp -a drivers/media/video/*.h $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}/drivers/media/video
    92         cd $(OPENWRT_LINUX_DIR) && cp -a drivers/media/dvb/frontends/*.h $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}/drivers/media/dvb/frontends
    93         cd $(OPENWRT_LINUX_DIR) && cp -a scripts include $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
    94         cd $(OPENWRT_LINUX_DIR) && (find arch -name include -type d -print | \
    95                 xargs -n1 -i: find : -type f) | \
    96                 cpio -pd --preserve-modification-time $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
     86        cd $(OPENWRT_LINUX_DIR) && make headers_install ARCH=$(TARGET_ARCH) INSTALL_HDR_PATH=$(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
     87        # some overrides which are not cleanly installed by make headers_install
     88        cp $(OPENWRT_LINUX_DIR)/include/linux/switch.h $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}/include/linux/switch.h
    9789        cp ${OPENWRT_LINUX_DIR}/.config $(INSTALL_DIR_OPENWRT_HEADERS)/usr/src/linux-headers-${OPENWRT_LINUX_VERSION}
    9890        tar czf $(INSTALL_DIR)/$(HEADERS_TAR_GZ) -C $(INSTALL_DIR_OPENWRT_HEADERS) .
Note: See TracChangeset for help on using the changeset viewer.