I'm trying to integrate the modified realtek-poe into the buildroot, but CMake is moaning about CMakeLists.txt not being there... What am I doing wrong here? Error output:
CMake Error: The source directory "/var/media/data/code/lede/22.03/build_dir/target-mips_4kec_musl/realtek-poe-2022-05-29-b07fbee9" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make[2]: *** [Makefile:36: /var/media/data/code/lede/22.03/build_dir/target-mips_4kec_musl/realtek-poe-2022-05-29-b07fbee9/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/var/media/data/code/lede/22.03/package/network/config/realtek-poe'
time: package/network/config/realtek-poe/compile#0.48#0.01#0.49
ERROR: package/network/config/realtek-poe failed to build.
make[1]: *** [package/Makefile:116: package/network/config/realtek-poe/compile] Error 1
make[1]: Leaving directory '/var/media/data/code/lede/22.03'
make: *** [/var/media/data/code/lede/22.03/include/toplevel.mk:230: package/network/config/realtek-poe/compile] Error 2
Looks OK though?
user@system:~/code/lede/22.03$ ls /var/media/data/code/lede/22.03/build_dir/target-mips_4kec_musl/realtek-poe-2022-05-29-b07fbee9/src/
CMakeLists.txt main.c
I diffed my Makefile (blogic's with some git logic) against the GitHub one and it's just the git lines that were added. Makefile:
include $(TOPDIR)/rules.mk
PKG_NAME:=realtek-poe
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/Hurricos/realtek-poe.git
PKG_SOURCE_DATE:=2022-05-29
PKG_SOURCE_VERSION:=b07fbee998350ef15010eb1e4073c804e8e9217b
PKG_MIRROR_HASH:=7de9c0f5cc6d03980dc0639023218a7afea92b5ae2422c4cace122993c81829e
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/realtek-poe
SECTION:=net
CATEGORY:=Network
TITLE:=Realtek PoE Switch Port daemon
DEPENDS:=@TARGET_realtek +libubox +libubus +libuci
endef
define Package/realtek-poe/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/realtek-poe $(1)/usr/bin/
$(CP) ./files/* $(1)
endef
$(eval $(call BuildPackage,realtek-poe))
What's going on here?